class

Spectator::Formatting::Formatter

Inherits Reference < Object

Interface for reporting test progress and results.

The methods should be called in this order:

  1. #start_suite
  2. #start_example
  3. #end_example
  4. #end_suite

Steps 2 and 3 are called for each example in the suite.

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 is not nil when profiling results should be displayed.

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