Open 23marabi opened 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.
Set up automated testing for RobotPy code.