class

Spectator::Formatting::TAPFormatter

Inherits Spectator::Formatting::Formatter / Reference / Object

Produces TAP output from test results. See: https://testanything.org/ Version 12 of the specification is used.

Constructors

new(io : IO = STDOUT)

Creates the formatter.

Source

Instance methods

dump_profile(notification)

Invoked after testing completes with profiling information.

Source
dump_summary(notification)

Invoked after testing completes with summarized information from the test suite.

Source
example_error(notification)

Invoked after an example fails from an unexpected error.

Source
example_failed(notification)

Invoked after an example fails.

Source
example_finished(_notification)

Invoked just after an example completes.

Source
example_passed(notification)

Invoked after an example completes successfully.

Source
example_pending(notification)

Invoked after an example is skipped or marked as pending.

Source
message(notification)

Called whenever the example or framework produces a message. This is typically used for logging.

Source
start(notification)

Invoked when the test suite begins.

Source