class Spectator::Config

Overview

Provides customization and describes specifics for how Spectator will run and report tests.

Defined in:

spectator/config.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(builder) #

Creates a new configuration.


[View source]

Instance Method Detail

def dry_run? : Bool #

Indicates whether the test should be done as a dry-run. Examples won't run, but the output will show that they did.


[View source]
def each_formatter(&) #

Yields each formatter that should be reported to.


[View source]
def example_filter : ExampleFilter #

Filter that determines which examples to run.


[View source]
def fail_blank? : Bool #

Indicates whether the test should fail if there are no examples.


[View source]
def fail_fast? : Bool #

Indicates whether the test should abort on first failure.


[View source]
def profile? : Bool #

Indicates whether profiling information should be displayed.


[View source]
def random : Random #

Random number generator to use for everything.


[View source]
def random_seed : UInt64 | Nil #

Random seed used for number generation.


[View source]
def random_seed? : UInt64 | Nil | Nil #

Random seed used for number generation.


[View source]
def randomize? : Bool #

Indicates whether tests are run in a random order.


[View source]