Open caloisio opened 2 years ago
My experience after some quick noodling around with pytest https://github.com/1757WestwoodRobotics/2022-RapidReact/compare/pytest-investigations:
This should be considered a relatively high priority item for the off season. With Dustin's changes this year the robotpy test frameworks are at least partially running. We should be able to write tests for both modules in isolation and things that interact with the HAL.
One area that we should definitely focus on is providing example tests that test the state transitions as that seems to be a place where we have had issues.
Testing is an essential aspect of good Engineering/Development practice. The robustness, performance, and overall quality of our code will improve if we include regular testing as a part of our process.
Proposed Definitions
testing
: verifying that the implementation of a component performs as-designedunit testing
: testing the component in isolationintegration testing
: testing the component in conjunction with the overall systemperformance testing (benchmarking)
: measuring a metric of a component or systemTasks