31#ifndef MICRO_OS_PLUS_MICRO_TEST_PLUS_REPORTER_TAP_H_
32#define MICRO_OS_PLUS_MICRO_TEST_PLUS_REPORTER_TAP_H_
36#if defined(__cplusplus)
40#if __has_include("micro-os-plus/project-config.h")
41#include "micro-os-plus/project-config.h"
44#if __has_include("micro-os-plus/micro-test-plus-defines.h")
45#include "micro-os-plus/micro-test-plus-defines.h"
54#pragma GCC diagnostic push
56#pragma GCC diagnostic ignored "-Wpadded"
58#pragma clang diagnostic ignored "-Wc++98-compat"
287 bool is_requirement)
override;
448#pragma GCC diagnostic pop
void begin_test_case(const test_case &test_case) override
Marks the beginning of a test case.
reporter_tap(reporter_tap &&)=delete
Deleted move constructor to prevent moving.
void begin_suite(const suite &suite) override
Marks the beginning of a test suite.
void end_suite(const suite &suite) override
Marks the end of a test suite.
void fail_suite(const std::string &message, const suite &suite) override
Reports a failure of a test suite outside its test cases.
void skip_suite(const suite &suite) override
Reports a test suite skipped by the filter.
void skip_test_case(const test_case &test_case) override
Reports a test case skipped by the filter.
void output_pass_suffix(const test_case &test_case) override
Outputs the suffix for a passing condition.
void output_fail_prefix(const std::string &message, const bool has_expression, const reflection::source_location &location, const test_case &test_case) override
Outputs the prefix for a failing condition.
void display_open_heading(const open_test_case &open, bool is_first) override
Writes the # Subtest: heading of an open test case.
void pass_without_text(const test_case &test_case) override
Records a passed check whose text is not written.
void write_quiet_failures(void)
Writes the failed checks of the quiet verbosity, as comments.
void end_session(const runner &runner) override
Marks the end of a test session.
reporter_tap(const reporter_tap &)=delete
Deleted copy constructor to prevent copying.
reporter_tap(const runner_options &opts)
Constructor for the reporter_tap class.
const char * error_prefix(void) const noexcept override
Returns the TAP bail-out prefix string "Bail out! ".
void abort_session(const reflection::source_location &location, bool is_requirement) override
Reports the abort of the test execution.
void output_fail_suffix(const reflection::source_location &location, check_kind kind, const test_case &test_case) override
Outputs the suffix for a failing condition.
size_t description_begin_
The position in the buffer where the description of a passed check begins.
void output_pass_prefix(const std::string &message, const test_case &test_case) override
Outputs the prefix for a passing condition.
void begin_session(const runner &runner) override
Marks the beginning of a test session.
size_t condition_begin_
The position in the buffer where the expression of a failed check begins.
void end_test_case(const test_case &test_case) override
Marks the end of a test case.
void commit_buffer(void) override
Writes the results buffered for the outer test case before a nested test case begins.
const char * comment_prefix(void) const noexcept override
Returns the TAP comment prefix string "# ".
reporter_tap & operator=(const reporter_tap &)=delete
Deleted copy assignment operator to prevent copying.
friend class micro_test_plus::runner
The runner, which lists the test cases.
reporter(const runner_options &opts)
Constructor for the reporter class.
friend class micro_test_plus::test_case
The test case, which creates the checks.
Local implementation of source location information for diagnostics.
The configuration of a test session, and its command-line parser.
A named, runnable test suite registered with the test runner.
Internal implementation details for the µTest++ framework.
check_kind
The kind of a check, which determines what happens when it fails.
C++ header file with declarations for the µTest++ reflection utilities.
C++ header file with declarations for the µTest++ test reporter.
A test case that has begun and not yet ended.