C++ source file with implementations for the µTest++ test suite methods. More...
Namespaces Index
Description
C++ source file with implementations for the µTest++ test suite methods.
This source file contains the core implementations for the test suite facilities of the µTest++ framework. It provides the logic for constructing, registering, and managing test suites and their associated test cases. The implementation covers initialisation and clean-up routines, execution of test suites and test cases, tracking of successful and failed checks, and integration with the test reporter for structured output.
The design ensures that test suites are non-copyable and non-movable, maintaining unique ownership and consistent state. Flexible support for callable objects enables a wide range of test suite definitions, facilitating expressive and maintainable test organisation across embedded and general C++ projects.
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.
File Listing
The file content with the documentation metadata removed is:
49#if __has_include("micro-os-plus/diag/trace.h")
50#include "micro-os-plus/diag/trace.h"
57#pragma clang diagnostic ignored "-Wunknown-warning-option"
58#pragma clang diagnostic ignored "-Wc++98-compat"
59#pragma clang diagnostic ignored "-Wc++98-compat-pedantic"
60#pragma clang diagnostic ignored "-Wunsafe-buffer-usage-in-libc-call"
62#pragma GCC diagnostic ignored "-Wredundant-tags"
63#pragma GCC diagnostic ignored "-Wsuggest-final-types"
64#pragma GCC diagnostic ignored "-Wsuggest-final-methods"
70#if defined(MICRO_OS_PLUS_MICRO_TEST_PLUS_ENABLED)
88#if defined(MICRO_OS_PLUS_MICRO_TEST_PLUS_TRACE_CONSTRUCTORS_ENABLED)
89 trace::printf ("%s '%s'\n", __PRETTY_FUNCTION__, name);
101#if defined(MICRO_OS_PLUS_MICRO_TEST_PLUS_TRACE_CONSTRUCTORS_ENABLED)
102 trace::printf ("%s '%s'\n", __PRETTY_FUNCTION__, name_);
122#if defined(MICRO_OS_PLUS_MICRO_TEST_PLUS_TRACE_CONSTRUCTORS_ENABLED)
123 trace::printf ("%s '%s' %zu\n", __PRETTY_FUNCTION__, name, own_index_);
136#if defined(MICRO_OS_PLUS_MICRO_TEST_PLUS_TRACE_CONSTRUCTORS_ENABLED)
137 trace::printf ("%s '%s'\n", __PRETTY_FUNCTION__, name_);
178 std::unique_ptr<class subtest> child_test, suite& suite)
188#if defined(MICRO_OS_PLUS_MICRO_TEST_PLUS_TRACE_CONSTRUCTORS_ENABLED)
189 trace::printf ("%s subtest '%s' executed one more subtest\n",
190 __PRETTY_FUNCTION__, name ());
196#if defined(MICRO_OS_PLUS_MICRO_TEST_PLUS_TRACE_CONSTRUCTORS_ENABLED)
197 trace::printf ("%s suite '%s' totals\n", __PRETTY_FUNCTION__,
219#if defined(MICRO_OS_PLUS_MICRO_TEST_PLUS_TRACE_CONSTRUCTORS_ENABLED)
220 trace::printf ("%s '%s'\n", __PRETTY_FUNCTION__, name_);
232#if defined(MICRO_OS_PLUS_MICRO_TEST_PLUS_TRACE_ENABLED)
233 trace::printf ("%s '%s'\n", __PRETTY_FUNCTION__, name_);
260#if defined(MICRO_OS_PLUS_MICRO_TEST_PLUS_TRACE_CONSTRUCTORS_ENABLED)
261 trace::printf ("%s '%s'\n", __PRETTY_FUNCTION__, name_);
273#if defined(MICRO_OS_PLUS_MICRO_TEST_PLUS_TRACE_ENABLED)
274 trace::printf ("%s '%s'\n", __PRETTY_FUNCTION__, name_);
302#if defined(MICRO_OS_PLUS_MICRO_TEST_PLUS_TRACE_CONSTRUCTORS_ENABLED)
303 trace::printf ("%s '%s'\n", __PRETTY_FUNCTION__, name);
317#if defined(MICRO_OS_PLUS_MICRO_TEST_PLUS_TRACE_CONSTRUCTORS_ENABLED)
318 trace::printf ("%s '%s'\n", __PRETTY_FUNCTION__, name_);
332#if defined(MICRO_OS_PLUS_MICRO_TEST_PLUS_TRACE_CONSTRUCTORS_ENABLED)
333 trace::printf ("%s '%s'\n", __PRETTY_FUNCTION__, name_);
347#if defined(MICRO_OS_PLUS_MICRO_TEST_PLUS_TRACE_ENABLED)
348 trace::printf ("%s '%s'\n", __PRETTY_FUNCTION__, name_);
Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.17.0.