Spectator
Inherits Spectator::DSL::Top
Module that contains all functionality related to Spectator.
Constants
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.
Current version of the Spectator library.
Class methods
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.
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.
Instance methods
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.
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=.
Nested types
- Spectator::AbstractArguments
- Spectator::AbstractExpression
- Spectator::Allow(T)
- Spectator::Anything
- Spectator::Arguments(Args, KWArgs)
- Spectator::Block(T)
- Spectator::CompositeNodeFilter
- Spectator::Config
- Spectator::Context
- Spectator::ContextDelegate
- Spectator::ContextMethod
- Spectator::DSL
- Spectator::Double
- Spectator::ErrorResult
- Spectator::Example
- Spectator::ExampleBuilder
- Spectator::ExampleContextDelegate
- Spectator::ExampleContextMethod
- Spectator::ExampleFailed
- Spectator::ExampleGroup
- Spectator::ExampleGroupBuilder
- Spectator::ExampleGroupHook
- Spectator::ExampleGroupIteration(T)
- Spectator::ExampleHook
- Spectator::ExampleIterator
- Spectator::ExamplePending
- Spectator::ExampleProcsyHook
- Spectator::ExceptionStub
- Spectator::Expectation
- Spectator::ExpectationFailed
- Spectator::Expression(T)
- Spectator::FailResult
- Spectator::FilteredExampleIterator
- Spectator::FormalArguments(Args, Splat, DoubleSplat)
- Spectator::Formatting
- Spectator::Harness
- Spectator::Hooks
- Spectator::IterativeExampleGroupBuilder(T)
- Spectator::Label
- Spectator::Lazy(T)
- Spectator::LazyDouble(Messages)
- Spectator::LazyWrapper
- Spectator::LineNodeFilter
- Spectator::Location
- Spectator::LocationNodeFilter
- Spectator::Matchers
- Spectator::Metadata
- Spectator::MethodCall
- Spectator::Mock
- Spectator::MockRegistry
- Spectator::Mocked
- Spectator::Mocks
- Spectator::MultiValueStub(T)
- Spectator::MultipleExpectationsFailed
- Spectator::NameNodeFilter
- Spectator::Node
- Spectator::NodeBuilder
- Spectator::NodeFilter
- Spectator::NodeIterator
- Spectator::NullContext
- Spectator::NullDouble
- Spectator::NullNodeFilter
- Spectator::NullStub
- Spectator::PassResult
- Spectator::PendingExampleBuilder
- Spectator::PendingResult
- Spectator::ProcStub(T)
- Spectator::Profile
- Spectator::ReferenceMockRegistry
- Spectator::Report
- Spectator::Result
- Spectator::RunFlags
- Spectator::Runner
- Spectator::RunnerEvents
- Spectator::Spec
- Spectator::SpecBuilder
- Spectator::Stub
- Spectator::StubModifiers
- Spectator::Stubbable
- Spectator::StubbedName
- Spectator::StubbedType
- Spectator::SystemExit
- Spectator::TagNodeFilter
- Spectator::Tags
- Spectator::TypedStub(T)
- Spectator::UnexpectedMessage
- Spectator::Value(T)
- Spectator::ValueMockRegistry(T)
- Spectator::ValueStub(T)
- Spectator::Wrapper