Example unittest project
This example shows how to build unit tests project. Structure is similar to
test suites in
Test suite is a normal Contiki-NG-based mote that defines and run unit tests.
The Contiki project is in
code-unittests. Tests use the
library; main process run every test. Results are printed on standard output.
Test is compiled and run by Cooja with script from
You can open the
00-unit-tests.csc simulation and run it from GUI, or by
command, e.g. in contiker container:
make -C examples/libs/unit-tests/
In similar way you can add complex Cooja simulations as a test.