class Spectator::Formatting::TAPFormatter
Overview
Formatter for the "Test Anything Protocol". For details, see: https://testanything.org/
Defined in:
spectator/formatting/tap_formatter.crConstructors
-
.new(io : IO = STDOUT)
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 is not nil when profiling results should be displayed.