class

Spectator::Config

Inherits Reference / Object

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

Constructors

default

Produces the default configuration.

Source
new(source)

Creates a new configuration. Properties are pulled from source. Typically, source is a Config::Builder.

Source

Instance methods

formatter

Primary formatter all events will be sent to.

Source
iterator(group : ExampleGroup)

Creates an iterator configured to select the filtered examples.

Source
node_filter

Filter used to select which examples to run.

Source
node_reject

Filter used to select which examples to not run.

Source
random

Retrieves the configured random number generator. This will produce the same generator with the same seed every time.

Source
random_seed

Seed used for random number generation.

Source
run_flags

Flags indicating how the spec should run.

Source
shuffle(items)

Shuffles the items in an array using the configured random settings. If #randomize? is true, the items are shuffled and returned as a new array. Otherwise, the items are left alone and returned as-is. The array of items is never modified.

Source
shuffle!(items)

Shuffles the items in an array using the configured random settings. If #randomize? is true, the items are shuffled and returned. Otherwise, the items are left alone and returned as-is. The array of items is modified, the items are shuffled in-place.

Source

Nested types