micro-test-plus 3.2.0
µTest++, a lightweight testing framework for embedded platforms
|
Test suites are named sequences of test cases. More...
Classes | |
class | micro_os_plus::micro_test_plus::test_suite |
Test suites are classes that represent a named group of test cases which self register to the runner. More... | |
Test suites are named sequences of test cases.
The test cases defined in main()
are considered to be part of the default (or main) test suite, and are executed immediately when invoked.
For complex applications there can be multiple test suites, usually in separate source files.
In order to make self-registration possible, test suites are classes, constructed with a name, a callable (usually a lambda which chains the execution of the test cases) and optional arguments:
The self-registration is done in the constructor. Test suites defined in different compilation units can be executed in any order (since the order in which the static constructors are invoked is not specified); thus there should be no dependencies between test suites.
The registered test suites are executed when the function exit_code()
is invoked.