|
micro-test-plus 6.0.1
µTest++ Testing Framework
|
C++ header file with declarations for the µTest++ test reporter. More...
#include "check-result.h"#include "detail.h"#include "expression-formatter.h"#include "extension.h"#include "reflection.h"#include "runner-options.h"#include <cstdint>#include <cstdio>#include <limits>#include <string_view>#include <string>#include <memory>#include <vector>#include <charconv>#include "inlines/reporter-inlines.h"Go to the source code of this file.
Classes | |
| struct | micro_os_plus::micro_test_plus::detail::indentation |
| Parameterised stream manipulator for outputting indentation. More... | |
| struct | micro_os_plus::micro_test_plus::detail::reporter::open_test_case |
| A test case that has begun and not yet ended. More... | |
| struct | micro_os_plus::micro_test_plus::detail::output_route |
| The destinations of a record. More... | |
| class | micro_os_plus::micro_test_plus::detail::reporter |
| Abstract base class for the reporters that display test results, including operand values for failures. More... | |
Namespaces | |
| namespace | micro_os_plus |
| The primary namespace for the µOS++ framework. | |
| namespace | micro_os_plus::micro_test_plus |
| Primary namespace for the µTest++ testing framework. | |
| namespace | micro_os_plus::micro_test_plus::detail |
| Internal implementation details for the µTest++ framework. | |
Functions | |
| reporter & | micro_os_plus::micro_test_plus::detail::endl (reporter &stream) |
| Output stream manipulator for ending a line in test reports. | |
| indentation | micro_os_plus::micro_test_plus::detail::indent (size_t level) |
| Factory function that creates an indentation manipulator. | |
This header provides the declarations for the test reporting facilities used within the µTest++ framework. It defines the endl and indent() stream manipulators, and the abstract reporter base class, which accumulates output in a buffer, writes it to the console and to an optional output file, and dispatches the pass/fail results and the session, suite, and test case events to the concrete reporters (reporter_human and reporter_tap).
The formatting of the values and the comparison expressions is delegated to detail::expression_formatter.
The verbosity levels, and the other session options, are defined in runner-options.h. The manipulators and the reporter are defined in the micro_os_plus::micro_test_plus::detail namespace, since the reporters are internal to the framework.
This file is included by micro-os-plus/micro-test-plus.h, which is the header that the applications include.
Definition in file reporter.h.