45#ifndef MICRO_TEST_PLUS_TEST_RUNNER_H_
46#define MICRO_TEST_PLUS_TEST_RUNNER_H_
59#pragma GCC diagnostic push
60#pragma GCC diagnostic ignored "-Wpadded"
62#pragma clang diagnostic ignored "-Wc++98-compat"
177 constexpr const char*
230#pragma GCC diagnostic pop
char ** argv_
Stores the argument vector passed to the test runner.
void abort(void)
Aborts test execution immediately.
test_runner & operator=(const test_runner &)=delete
Deleted copy assignment operator to prevent copying.
std::vector< test_suite_base * > * suites_
Pointer to the array of registered test suites.
test_runner(test_runner &&)=delete
Deleted move constructor to prevent moving.
test_runner()
Default constructor for the test_runner class.
constexpr const char * name(void)
Retrieves the name of the default test suite.
int argc_
Stores the argument count passed to the test runner.
~test_runner()=default
Destructor for the test_runner class.
test_suite_base * default_test_suite_
Pointer to the default test suite which groups the main tests.
test_runner(const test_runner &)=delete
Deleted copy constructor to prevent copying.
int exit_code(void)
Returns 0 if all tests were successful, 1 otherwise.
void initialize(int argc, char *argv[], const char *name)
Initialises the test runner with command-line arguments and an optional suite name.
void register_test_suite(test_suite_base *suite)
Registers a test suite with the runner.
const char * default_suite_name_
The name of the default test suite.
Base class for all test suites.
Primary namespace for the µTest++ testing framework.