class

Spectator::Formatting::DocumentFormatter

Inherits Spectator::Formatting::SuiteSummary < Spectator::Formatting::Formatter < Reference < Object

Produces an indented document-style output. Each nested group of examples increases the indent. Example names are output in a color based on their result.

Constructors

new(io : IO = STDOUT)

Creates the formatter. By default, output is sent to STDOUT.

Source

Instance methods

end_example(result)

Produces a single character output based on a result.

Source
start_example(example)

Does nothing when an example is started.

Source