Spectator::Runner
Inherits Spectator::RunnerEvents / Struct / Value / Object
Logic for executing examples and collecting results.
Constructors
new(examples : Array(Example), formatter : Formatting::Formatter, run_flags : Spectator::RunFlags = RunFlags::None, random_seed : UInt64 | Nil = nil)
Creates the runner. The collection of examples should be pre-filtered and shuffled. This runner will run each example in the order provided. The formatter will be called for various events.
Instance methods
run
Runs the spec. This will run the provided examples and invoke the reporters to communicate results. True will be returned if the spec ran successfully, or false if there was at least one failure.