Class TapOutputPlugin

Inheritance Relationships

Base Type

Class Documentation

class TapOutputPlugin : public mu::tiny::test::Plugin
[source]

Plugin that produces TAP version 13 output on stdout.

Install this plugin before calling CommandLineRunner::run_all_tests() to enable the -ptap command-line argument. When activated, create_output() returns a TapOutput that writes TAP to stdout, replacing the normal console output. SKIP directives are emitted for ignored and skipped tests; YAML diagnostic blocks carry the failure message and location for failing tests.

Public Functions

TapOutputPlugin()
[source]

Construct and name the plugin.

virtual bool parse_arguments(int argc, const char *const *argv) override

Handle the -ptap command-line argument.

Parameters:
  • argc – Remaining argument count (argv[0] through end).

  • argv – Pointer to the current argument.

Returns:

true if the argument was consumed.

virtual String get_help() const override

Return help text for the -ptap option.

Returns:

A String describing the argument.

virtual Output *create_output() override
[source]

Create the TAP output object when -ptap was supplied.

Returns:

A new TapOutput, or nullptr if the plugin is not active.