1757WestwoodRobotics / 2022-RapidReact

Competition Bot for FRC 2022 Season
MIT License
5 stars 1 forks source link

Implement testing #9

Open caloisio opened 2 years ago

caloisio commented 2 years ago

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-designed unit testing: testing the component in isolation integration testing: testing the component in conjunction with the overall system performance testing (benchmarking): measuring a metric of a component or system

Tasks

caloisio commented 2 years ago

My experience after some quick noodling around with pytest https://github.com/1757WestwoodRobotics/2022-RapidReact/compare/pytest-investigations:

agelsomini commented 2 years ago

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.