abstract class Spectator::Formatting::Formatter

Overview

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.

Direct Known Subclasses

Defined in:

spectator/formatting/formatter.cr

Instance Method Summary

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

abstract def end_example(result : Result) #

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


[View source]
abstract def 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.


[View source]
abstract def start_example(example : Example) #

Called before a test starts.


[View source]
abstract def start_suite(suite : TestSuite) #

Called when a test suite is starting to execute.


[View source]