|
micro-test-plus 6.0.0
µTest++ Testing Framework
|
The runner initialises the framework and returns the exit code. More...
Classes | |
| class | micro_os_plus::micro_test_plus::counters |
| Aggregated check and test case counters for a node in the test tree. More... | |
| class | micro_os_plus::micro_test_plus::runner |
| The test runner for the µTest++ framework. More... | |
| class | micro_os_plus::micro_test_plus::runner_options |
| The configuration of a test session, and its command-line parser. More... | |
Enumerations | |
| enum class | micro_os_plus::micro_test_plus::colour_mode { micro_os_plus::micro_test_plus::colour_mode::automatic , micro_os_plus::micro_test_plus::colour_mode::always , micro_os_plus::micro_test_plus::colour_mode::never } |
| The use of colours in the console output. More... | |
| enum class | micro_os_plus::micro_test_plus::reporter_kind { micro_os_plus::micro_test_plus::reporter_kind::tap , micro_os_plus::micro_test_plus::reporter_kind::human } |
| The built-in reporters. More... | |
| enum class | micro_os_plus::micro_test_plus::verbosity { micro_os_plus::micro_test_plus::verbosity::silent = 0 , micro_os_plus::micro_test_plus::verbosity::quiet = 1 , micro_os_plus::micro_test_plus::verbosity::normal = 2 , micro_os_plus::micro_test_plus::verbosity::verbose = 3 } |
| The verbosity levels for test reporting. More... | |
A test program usually has one runner, a global object, which main() uses in three steps:
Several runners may coexist, global or local, each with its own suites: a runner runs only the suites that refer to it, so the runners do not interfere (see runner).
The exit code is:
The program writes (the passed checks are displayed only with the --verbose option):
The name of the top suite is optional. Without it, the suite is named after the program, the file name of argv[0] without its extension (minimal above); without argv[0], it is named default suite.
The members of runner_options are the options of the command line (see Command-line options): the reporter, the verbosity, the colours, the output file, the filter patterns, the listing of the test cases, and the display of the usage.
|
strong |
Selected with the --colour command-line option (or its American spelling --color, or its alternative --use-colour, also spelled --use-color), or with runner_options::colour; the default is automatic. The names follow the values of --color in the GNU tools.
Only the human-readable reporter uses colours; the TAP reporter never does, since the ANSI escape sequences are not part of the TAP syntax. The output file never receives colours, whatever the mode.
Definition at line 152 of file runner-options.h.
|
strong |
Selected with the --reporter command-line option, or with runner_options::selected_reporter; the default is tap.
| Enumerator | |
|---|---|
| tap | The TAP reporter, compliant with TAP version 14. |
| human | The human-readable reporter, with optional colours. |
Definition at line 127 of file runner-options.h.
|
strong |
The level is selected with the --silent, --quiet, and --verbose command-line options, or with runner_options::verbosity_level; the default is normal. The console output is intended for the people who watch the tests run, while the optional output file is intended for the integration with other tools. The level affects only the console output; the output file always receives the full report.
The quiet level displays the failed checks, with the names of the suite and of the test cases that contain them, and the totals; the passed checks and the passed test cases are not displayed. To also see them, use the verbose level, or keep quiet and use an output file, which receives them.
Definition at line 100 of file runner-options.h.