Spectator::Config::Builder
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.
Instance methods
Attaches a hook to be invoked after every example. The current example is provided as a block argument.
Attaches a hook to be invoked after all examples in the test suite.
Attaches a hook to be invoked around every example. The current example in procsy form is provided as a block argument.
Attaches a hook to be invoked before every example. The current example is provided as a block argument.
Attaches a hook to be invoked before all examples in the test suite.
Adds an extra formatter to use for reporting test progress and results.
Defines a block of code to execute after every example. The current example is provided as a block argument.
Defines a block of code to execute around every example. The current example in procsy form is provided as a block argument.
Defines a block of code to execute before every. The current example is provided as a block argument.
Specifies one or more tags to exclude from running examples.
Specifies one or more tags to constrain running examples to.
Specifies one or more tags to filter on only if they're present in the spec.
Sets the primary formatter to use for reporting test progress and results.
Toggles indicating how the test spec should execute.