class

Spectator::Formatting::JUnitFormatter

Inherits Spectator::Formatting::Formatter < Reference < Object

Formatter for producing a JUnit XML report.

Constructors

new(output_dir : String)

Creates the formatter. By default, output is sent to STDOUT.

Source

Instance methods

end_example(result : Result)

Called when a test finishes. The result of the test is provided.

Source
end_suite(report : Report, profile : Profile | Nil)

Called when a test suite finishes. The results from the entire suite are provided. The profile value does nothing for this formatter.

Source
start_example(example : Example)

Called before a test starts.

Source
start_suite(suite : TestSuite)

Called when a test suite is starting to execute.

Source