class

Spectator::ConfigBuilder

Inherits Reference < Object

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.

Constructors

Class methods

default

Creates a default configuration.

Source

Instance methods

add_example_filter(filter : ExampleFilter)

Adds a filter to determine which examples can run.

Source
add_formatter(formatter : Formatting::Formatter)

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

Source
build

Creates a configuration.

Source
dry_run

Enables dry-run mode.

Source
dry_run=(flag : Bool)

Enables or disables dry-run mode.

Source
fail_blank

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

Source
fail_blank=(flag : Bool)

Enables or disables fail-blank mode.

Source
fail_fast

Enables fail-fast mode.

Source
fail_fast=(flag : Bool)

Sets the fail-fast flag.

Source
formatter=(formatter : Formatting::Formatter)

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

Source
profile

Displays profiling information

Source
profile=(flag : Bool)

Enables or disables displaying profiling information.

Source
randomize

Randomizes test execution order.

Source
randomize=(flag : Bool)

Enables or disables running tests in a random order.

Source
seed

Seed used for random number generation.

Source
seed=(seed : UInt64 | Nil)

Sets the seed for the random number generator.

Source
seed?

Seed used for random number generation.

Source