class Spectator::Runner

Overview

Main driver for executing tests and feeding results to formatters.

Defined in:

spectator/runner.cr

Constructors

Instance Method Summary

Instance methods inherited from class Object

should(matcher) should, should_eventually(matcher) should_eventually, should_never(matcher) should_never, should_not(matcher) should_not

Constructor Detail

def self.new(suite : TestSuite, config : Config) #

Creates the test suite runner. Specify the test suite to run and any additonal configuration.


[View source]

Instance Method Detail

def run : Bool #

Runs the test suite. This will run the selected examples and invoke the formatter to output results. True will be returned if the test suite ran successfully, or false if there was at least one failure.


[View source]