micro-test-plus 6.0.0
µTest++ Testing Framework
Loading...
Searching...
No Matches
µTest++

The µTest++ Testing Framework. More...

Topics

 C++ API
 How to write the tests.
 C API
 There is no C API; C code is tested from C++.
 Configuration
 The macros that enable and configure the framework.
 Command-line options
 Options for controlling the test output at run time.

Detailed Description

µTest++ is a C++20 testing framework for embedded targets, which also runs on the native platforms. The tests are ordinary C++ code, functions and lambdas, with no preprocessor macros.

A test program uses three classes:

  • the runner, which reads the command line, runs the suites, and returns the exit code;
  • the suite, a named group of test cases;
  • the test_case, a named sequence of checks, made with expect() and require().

The results are written in the TAP format, for the tools that read test results, or in a human-readable format.

The topics are grouped in four parts: