module

Spectator

Inherits Spectator::DSL::Top

Module that contains all functionality related to Spectator.

Constants

CONFIG_FILE_PATH = ".spectator"

Path to the Spectator configuration file. The contents of this file should contain command-line arguments. Those arguments are automatically applied when Spectator starts. Arguments should be placed with one per line.

Log = ::Log.for(self)
VERSION = {{ (`shards version \"/tmp/tmp.PFpkJB/src/src\"`).stringify.chomp }}

Current version of the Spectator library.

Class methods

autorun=(autorun)

Flag indicating whether Spectator should automatically run tests. This should be left alone (set to true) in typical usage. There are times when Spectator shouldn't run tests. One of those is testing Spectator.

Source
autorun?

Flag indicating whether Spectator should automatically run tests. This should be left alone (set to true) in typical usage. There are times when Spectator shouldn't run tests. One of those is testing Spectator.

Source
config

Global configuration used by Spectator for running tests.

Source

Instance methods

configure

Provides a means to configure how Spectator will run and report tests. A ConfigBuilder is yielded to allow changing the configuration. NOTE: The configuration set here can be overridden with a .spectator file and command-line arguments.

Source
random

Random number generator for the test suite. All randomly generated values should be pulled from this. This provides re-producible results even though random values are used. The seed for this random generator is controlled by ConfigBuilder.seed=.

Source

Nested types