class

Spectator::Formatting::JUnitFormatter

Inherits Spectator::Formatting::Formatter / Reference / Object

Produces a JUnit compatible XML file containing the test results.

Constructors

new(output_path = OUTPUT_FILE)

Creates the formatter. The output_path can be a directory or path of an XML file. If the former, then an "output.xml" file will be generated in the specified directory.

Source

Instance methods

close

Invoked at the end of the program. Allows the formatter to perform any cleanup and teardown.

Source
dump_summary(notification)

Invoked after testing completes with summarized information from the test suite. Unfortunately, the JUnit specification is not conducive to streaming data. All results are gathered at the end, then the report is generated.

Source
start(_notification)

Prepares the formatter for writing.

Source