Spectator::Report
Inherits Reference / Object
Outcome of all tests in a suite.
Constructors
new(examples : Array(Example), runtime : Time::Span, counts : Counts, random_seed : UInt64 | Nil = nil)
Creates the report. The examples are all examples in the test suite that were selected to run. The runtime is the total time it took to execute the suite. The counts is the number of examples for each type of result. The random_seed is the seed used for random number generation.
Class methods
generate(examples : Enumerable(Example), runtime, random_seed = nil)
Generates the report from a set of examples.
Instance methods
example_runtime
Length of time it took to run just example code. This does not include hooks, but it does include pre- and post-conditions.
runtime
Total length of time it took to execute the test suite. This includes examples, hooks, and framework processes.