class Spectator::ConfigBuilder
- Spectator::ConfigBuilder
- Reference
- Object
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.crConstructors
Class Method Summary
-
.default
Creates a default configuration.
Instance Method Summary
-
#add_example_filter(filter : ExampleFilter)
Adds a filter to determine which examples can run.
-
#add_formatter(formatter : Formatting::Formatter)
Adds an extra formater to use for reporting test progress and results.
-
#build : Config
Creates a configuration.
-
#dry_run
Enables dry-run mode.
-
#dry_run=(flag : Bool)
Enables or disables dry-run mode.
-
#fail_blank
Enables fail-blank mode (fail on no tests).
-
#fail_blank=(flag : Bool)
Enables or disables fail-blank mode.
-
#fail_fast
Enables fail-fast mode.
-
#fail_fast=(flag : Bool)
Sets the fail-fast flag.
-
#formatter=(formatter : Formatting::Formatter)
Sets the primary formatter to use for reporting test progress and results.
-
#profile
Displays profiling information
-
#profile=(flag : Bool)
Enables or disables displaying profiling information.
-
#randomize
Randomizes test execution order.
-
#randomize=(flag : Bool)
Enables or disables running tests in a random order.
-
#seed : UInt64 | Nil
Seed used for random number generation.
-
#seed=(seed : UInt64 | Nil)
Sets the seed for the random number generator.
-
#seed? : UInt64 | Nil | Nil
Seed used for random number generation.
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
Class Method Detail
Instance Method Detail
Adds an extra formater to use for reporting test progress and results.
Sets the primary formatter to use for reporting test progress and results.