class Spectator::Formatting::JSONFormatter
Overview
Produces a JSON document with results of the test suite.
Defined in:
spectator/formatting/json_formatter.crConstructors
-
.new(io = STDOUT)
Creates the formatter.
Instance Method Summary
-
#close
Ends the JSON document and flushes output.
-
#dump_profile(notification)
Adds the profiling information to the document.
-
#dump_summary(notification)
Adds the summary object to the document.
-
#example_finished(notification)
Adds an object containing fields about the example.
-
#start(_notification)
Begins the JSON document output.
-
#stop
Marks the end of the examples array.