C++ header file with declarations for the µTest++ test runner. More...
Namespaces Index
Classes Index
Description
C++ header file with declarations for the µTest++ test runner.
This header provides the declarations for the test runner facilities used within the µTest++ framework. It defines the runner class, which manages the registration and execution of test suites, including the static suites declared at namespace scope. The deprecated static_runner alias is declared in deprecated.h.
The test runner is responsible for initialising the test environment, creating the reporter, registering test suites, processing command-line arguments, and determining the overall test result via an exit code. It also provides a mechanism for aborting test execution.
All definitions reside within the micro_os_plus::micro_test_plus namespace.
This file is included by micro-os-plus/micro-test-plus.h, which is the header that the applications include.
File Listing
The file content with the documentation metadata removed is:
37#ifndef MICRO_OS_PLUS_MICRO_TEST_PLUS_RUNNER_H_
38#define MICRO_OS_PLUS_MICRO_TEST_PLUS_RUNNER_H_
42#if defined(__cplusplus)
46#if __has_include("micro-os-plus/project-config.h")
47#include "micro-os-plus/project-config.h"
50#if __has_include("micro-os-plus/micro-test-plus-defines.h")
51#include "micro-os-plus/micro-test-plus-defines.h"
71#pragma GCC diagnostic push
73#pragma GCC diagnostic ignored "-Wpadded"
75#pragma clang diagnostic ignored "-Wc++98-compat"
77#pragma GCC diagnostic ignored "-Wsuggest-final-types"
78#pragma GCC diagnostic ignored "-Wsuggest-final-methods"
79#pragma GCC diagnostic ignored "-Wredundant-tags"
237#if defined(MICRO_OS_PLUS_MICRO_TEST_PLUS_DEPRECATED_ENABLED)
252 [[deprecated ("use runner() and add_top_suite() (since 4.1.0)")]]
253 runner (const char* top_suite_name);
309#if defined(MICRO_OS_PLUS_MICRO_TEST_PLUS_DEPRECATED_ENABLED)
341 [[deprecated ("use initialise (argc, argv) and add_top_suite() "
342 "(since 6.0.0)")]] class suite&
343 initialise (int argc, char* argv[], const char* top_suite_name);
519#if defined(MICRO_OS_PLUS_MICRO_TEST_PLUS_DEPRECATED_ENABLED)
536 [[deprecated ("use run_suites() (since 6.0.0)")]] int
579 template <typename Callable_T, typename... Args_T>
583 Args_T&&... arguments);
585#if !defined(__DOXYGEN__)
604 template <typename Callable_T, typename... Args_T>
608 Args_T&&... arguments);
611#if defined(MICRO_OS_PLUS_MICRO_TEST_PLUS_DEPRECATED_ENABLED)
638 template <typename Callable_T, typename... Args_T>
639 [[deprecated ("use add_suite() (since 6.0.0)")]] void
640 suite (std::string_view name, Callable_T&& callable,
641 Args_T&&... arguments);
781#if defined(MICRO_OS_PLUS_MICRO_TEST_PLUS_DEPRECATED_ENABLED)
798 [[deprecated ("use verbosity_level() (since 6.0.0)"), nodiscard]] auto
826#if defined(MICRO_OS_PLUS_MICRO_TEST_PLUS_DEPRECATED_ENABLED)
848 [[deprecated ("the runner has no name; see add_top_suite() "
850 nodiscard]] const char*
851 name (void) const noexcept;
869 "use added_suites_count() or total_suites_count() (since 6.0.0)"),
928 totals (void) const noexcept;
952 [[nodiscard]] std::span<const std::string>
955#if defined(MICRO_OS_PLUS_MICRO_TEST_PLUS_DEPRECATED_ENABLED)
976 [[deprecated ("the timings are internal (since 6.0.0)"),
994 [[deprecated ("the timings are internal (since 6.0.0)"),
1013 [[deprecated ("use verbosity_level() (since 6.0.0)"),
1442#if defined(__GNUC__)
1443#pragma GCC diagnostic pop
Generated via doxygen2docusaurus 2.2.8 by Doxygen 1.18.0.