class Spectator::ConfigBuilder

Overview

Mutable configuration used to produce a final configuration. Use the setters in this class to incrementally build a configuration. Then call #build to create the final configuration.

Defined in:

spectator/config_builder.cr

Constructors

Class Method Summary

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 #

[View source]

Class Method Detail

def self.default #

Creates a default configuration.


[View source]

Instance Method Detail

def add_example_filter(filter : ExampleFilter) #

Adds a filter to determine which examples can run.


[View source]
def add_formatter(formatter : Formatting::Formatter) #

Adds an extra formater to use for reporting test progress and results.


[View source]
def build : Config #

Creates a configuration.


[View source]
def dry_run #

Enables dry-run mode.


[View source]
def dry_run=(flag : Bool) #

Enables or disables dry-run mode.


[View source]
def fail_blank #

Enables fail-blank mode (fail on no tests).


[View source]
def fail_blank=(flag : Bool) #

Enables or disables fail-blank mode.


[View source]
def fail_fast #

Enables fail-fast mode.


[View source]
def fail_fast=(flag : Bool) #

Sets the fail-fast flag.


[View source]
def formatter=(formatter : Formatting::Formatter) #

Sets the primary formatter to use for reporting test progress and results.


[View source]
def profile #

Displays profiling information


[View source]
def profile=(flag : Bool) #

Enables or disables displaying profiling information.


[View source]
def randomize #

Randomizes test execution order.


[View source]
def randomize=(flag : Bool) #

Enables or disables running tests in a random order.


[View source]
def seed : UInt64 | Nil #

Seed used for random number generation.


[View source]
def seed=(seed : UInt64 | Nil) #

Sets the seed for the random number generator.


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

Seed used for random number generation.


[View source]