Skip to main content

µTest++

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

Topics Index​

 C++ API

How to write the tests. More...

 C API

There is no C API; C code is tested from C++. More...

 Configuration

The macros that enable and configure the framework. More...

 Command-line options

Options for controlling the test output at run time. More...

Description​

The µTest++ Testing Framework.

µ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:


Generated via doxygen2docusaurus 2.2.8 by Doxygen 1.18.0.