40#ifndef MICRO_OS_PLUS_MICRO_TEST_PLUS_RUNNER_OPTIONS_H_
41#define MICRO_OS_PLUS_MICRO_TEST_PLUS_RUNNER_OPTIONS_H_
45#if defined(__cplusplus)
49#if __has_include("micro-os-plus/project-config.h")
50#include "micro-os-plus/project-config.h"
53#if __has_include("micro-os-plus/micro-test-plus-defines.h")
54#include "micro-os-plus/micro-test-plus-defines.h"
66#pragma GCC diagnostic push
68#pragma GCC diagnostic ignored "-Wpadded"
70#pragma clang diagnostic ignored "-Wc++98-compat"
523 [[nodiscard]]
const std::vector<std::string>&
524 errors (
void)
const noexcept;
549 [[nodiscard]]
const std::vector<std::string>&
571 [[nodiscard]] std::span<const std::string>
590 add_error (std::string_view before, std::string_view value = {},
591 std::string_view after = {});
636#pragma GCC diagnostic pop
runner_options(const runner_options &other)=default
Copy constructor.
std::size_t application_begin_
The index in arguments_ of the first argument left to the application.
bool has_unknown_option(void) const noexcept
Checks whether an unknown option was found while parsing the command line.
runner_options(runner_options &&other)=default
Move constructor.
runner_options(void)=default
Constructs the default options.
bool help
Whether to display the usage and the list of the options, instead of running the tests.
std::vector< std::string > errors_
The errors found while parsing the command line.
colour_mode colour
Whether the console output uses colours.
const std::vector< std::string > & errors(void) const noexcept
Returns the errors found while parsing the command line.
bool has_errors(void) const noexcept
Checks whether errors were found while parsing the command line.
std::vector< std::string > filter_patterns
The patterns that select the suites and the test cases to run, one per nesting level.
bool unknown_option_
Whether an unknown option was found.
runner_options & operator=(const runner_options &other)
Copy assignment operator.
std::string output_file_path
Path of the optional output file.
const std::vector< std::string > & arguments(void) const noexcept
Returns the complete command line, including argv[0], if any.
std::span< const std::string > application_arguments(void) const noexcept
Returns the arguments left to the application.
void add_error(std::string_view before, std::string_view value={}, std::string_view after={})
Records a command-line error.
bool list_tests
Whether the test cases are listed instead of run.
reporter_kind selected_reporter
The reporter that displays the results.
std::vector< std::string > arguments_
The complete command line, including argv[0], if any.
~runner_options()=default
Destructor.
micro_test_plus::verbosity verbosity_level
The level of detail of the console output.
colour_mode
The use of colours in the console output.
verbosity
The verbosity levels for test reporting.
reporter_kind
The built-in reporters.
Primary namespace for the µTest++ testing framework.
C++ header file with inline implementations for the µTest++ runner options.