class Spectator::Formatting::JUnitFormatter
Overview
Formatter for producing a JUnit XML report.
Defined in:
spectator/formatting/junit_formatter.crConstructors
-
.new(output_dir : String)
Creates the formatter.
Instance Method Summary
-
#end_example(result : Result)
Called when a test finishes.
-
#end_suite(report : Report, profile : Profile | Nil)
Called when a test suite finishes.
-
#start_example(example : Example)
Called before a test starts.
-
#start_suite(suite : TestSuite)
Called when a test suite is starting to execute.
Instance methods inherited from class Spectator::Formatting::Formatter
end_example(result : Result)
end_example,
end_suite(report : Report, profile : Profile | Nil)
end_suite,
start_example(example : Example)
start_example,
start_suite(suite : TestSuite)
start_suite
Instance methods inherited from class Object
should(matcher)
should,
should_eventually(matcher)
should_eventually,
should_never(matcher)
should_never,
should_not(matcher)
should_not
Constructor Detail
Instance Method Detail
Called when a test finishes. The result of the test is provided.
Called when a test suite finishes. The results from the entire suite are provided. The profile value does nothing for this formatter.