Class JUnitOutputPlugin¶
Defined in File JUnitOutputPlugin.hpp
Inheritance Relationships¶
Base Type¶
public mu::tiny::test::Plugin(Class Plugin)
Class Documentation¶
-
class JUnitOutputPlugin : public mu::tiny::test::Plugin¶
[source] Plugin that produces a JUnit-style XML report alongside console output.
Install this plugin before calling CommandLineRunner::run_all_tests_main() to enable the
-pjunit[=<name>]command-line argument. When activated, create_output() returns a JUnitOutput that writes XML alongside console output.Public Functions
-
explicit JUnitOutputPlugin(const String &default_package_name = "")¶
Construct the plugin with an optional default package name.
- Parameters:
default_package_name – Used as the JUnit package name when
-pjunitis given without an explicit=namesuffix. Pass the executable basename to reproduce the standard behaviour. Defaults to empty, which leaves the package name unset.
-
virtual bool parse_arguments(int argc, const char *const *argv) override¶
Handle the
-pjunit[=<name>]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.
-
explicit JUnitOutputPlugin(const String &default_package_name = "")¶