rockwayrobotics / robot-on-python

0 stars 0 forks source link

RobotPy Automated Tests #2

Open 23marabi opened 1 year ago

23marabi commented 1 year ago

Set up automated testing for RobotPy code.

peter9477 commented 1 year ago

Probably the best way to deal with this is to look at the examples repo and find a few examples that have tests. I know timing/ has a basic test example. It appears there's infrastructure readily available, and the main thing is probably that you have to create some simulation objects and manipulate them to put the robot code through its paces. Doesn't look very hard.

I think once we get the initial prototype/experimental code into a state where we can manually run and have a simple autonomous, we can go back and make sure all the code paths are exercised with tests. Then just ensure that as we add functionality it comes with tests. Maybe as a general best practice we can add functionality on a feature branch, and only merge to trunk when there are tests available.