The test-reporter.cpp
File Reference
C++ source file with implementations for the µTest++ test reporter methods. More...
Included Headers
Namespaces Index
namespace | micro_os_plus |
The primary namespace for the µOS++ framework. More... | |
namespace | micro_test_plus |
Primary namespace for the µTest++ testing framework. More... | |
Functions Index
test_reporter & | endl (test_reporter &stream) |
Output stream manipulator for ending a line in test reports. More... | |
Description
C++ source file with implementations for the µTest++ test reporter methods.
This source file contains the core implementations for the test reporting facilities of the µTest++ framework. It provides the logic for formatting and outputting test results, including operator overloads for a wide range of value types, containers, and comparison expressions, as well as structured output for logical and exception-related assertions.
The test reporter is responsible for presenting test outcomes in a clear, consistent, and expressive manner, supporting both value and pointer semantics, and providing detailed diagnostics for both successful and failed test cases. Special attention is given to formatting, colour highlighting, and extensibility, enabling professional and readable test reports suitable for embedded and general C++ development.
All definitions reside within the micro_os_plus::micro_test_plus namespace, ensuring clear separation from user code and minimising the risk of naming conflicts.
This file must be included when building the µTest++ library.
Functions
endl()
|
Output stream manipulator for ending a line in test reports.
- Parameters
-
stream Reference to the test_reporter instance.
- Returns
Reference to the same test_reporter instance, enabling chaining of output operations.
The endl function inserts a newline character into the specified test_reporter stream and flushes its output buffer. This operation ensures that each test output line is clearly separated and immediately visible, facilitating the readability and clarity of test results across all test cases and folders within the µTest++ framework.
Definition at line 73 of file test-reporter.cpp.
Reference micro_os_plus::micro_test_plus::reporter.
Referenced by micro_os_plus::micro_test_plus::test_reporter::output_fail_suffix_ and micro_os_plus::micro_test_plus::test_reporter::output_pass_suffix_.
File Listing
The file content with the documentation metadata removed is:
Generated via doxygen2docusaurus by Doxygen 1.14.0.