abstract class Spectator::Formatting::Formatter
Overview
Interface for reporting test progress and results.
The methods should be called in this order:
Steps 2 and 3 are called for each example in the suite.
Direct Known Subclasses
- Spectator::Formatting::DocumentFormatter
- Spectator::Formatting::DotsFormatter
- Spectator::Formatting::JsonFormatter
- Spectator::Formatting::JUnitFormatter
- Spectator::Formatting::SilentFormatter
- Spectator::Formatting::TAPFormatter
Defined in:
spectator/formatting/formatter.crInstance 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 Object
should(matcher)
should,
should_eventually(matcher)
should_eventually,
should_never(matcher)
should_never,
should_not(matcher)
should_not
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.
Called when a test suite is starting to execute.