class

Spectator::Formatting::HTMLFormatter

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

Produces an HTML document with results of the test suite.

Constructors

new(output_path = OUTPUT_FILE)

Creates the formatter. The output_path can be a directory or path of an HTML file. If the former, then an "output.html" file will be generated in the specified directory.

Source

Instance methods

close

Invoked at the end of the program. Allows the formatter to perform any cleanup and teardown.

Source
dump_summary(notification)

Invoked after testing completes with summarized information from the test suite. All results are gathered at the end, then the report is generated.

Source
start(_notification)

Prepares the formatter for writing.

Source