QGroundControl (QGC) contains a set of unit tests that must pass before a pull request will be accepted. The addition of new complex subsystems to QGC should include a corresponding new unit test to test it.
The full list of unit tests can be found in UnitTestList.cc.
To run unit tests:
- Build in
- Copy the deploy/qgroundcontrol-start.sh script in the debug directory
- Run all unit tests from the command line using the
--unittestcommand line option. For Linux this is done as shown:
- Run individual unit tests by specifying the test name as well:
--unittest:RadioConfigTest. For Linux this is done as shown: