Skip to content

CI testing the source code

Martin edited this page Oct 19, 2021 · 3 revisions

Unit testing finds problems early in the development cycle.

Continuous integration testing also helps finding errors that you may generate when creating new features. However even if it's all green before merging it's recommended to do a full test flashing the feature/branch in the device. And then to test the new feature but also all other parts of the application, to ensure the new feature does not break any existing functionality. In order to run the CI tests open a Terminal window in Platformio and run:

pio test -e native

There is also a GitHub action that makes a test run whenever we push to the repository. That way, in each merge request there's a section "All checks have passed", if you expand that out you can see the workflow that was run:

.github/workflows/build-test-on-push.yml

The tests are in the tests folder of the repository.

More information about PlatformIO Unit Testing:

Clone this wiki locally