Module: Smartest
- Defined in:
- lib/smartest.rb,
lib/smartest/dsl.rb,
lib/smartest/suite.rb,
lib/smartest/errors.rb,
lib/smartest/runner.rb,
lib/smartest/fixture.rb,
lib/smartest/version.rb,
lib/smartest/matchers.rb,
lib/smartest/reporter.rb,
lib/smartest/test_run.rb,
lib/smartest/suite_run.rb,
lib/smartest/test_case.rb,
lib/smartest/fixture_set.rb,
lib/smartest/test_result.rb,
lib/smartest/expectations.rb,
lib/smartest/cli_arguments.rb,
lib/smartest/hook_contexts.rb,
lib/smartest/test_registry.rb,
lib/smartest/init_generator.rb,
lib/smartest/matcher_registry.rb,
lib/smartest/execution_context.rb,
lib/smartest/expectation_target.rb,
lib/smartest/fixture_definition.rb,
lib/smartest/parameter_extractor.rb,
lib/smartest/fixture_class_registry.rb
Defined Under Namespace
Modules: DSL, Expectations, Matchers
Classes: AroundSuiteContext, AroundSuiteRunError, AroundTestContext, AroundTestFixtureScopeError, AroundTestRunError, AssertionFailed, BeNilMatcher, CLIArguments, CircularFixtureDependencyError, DuplicateFixtureError, EqMatcher, Error, ExecutionContext, ExpectationTarget, Fixture, FixtureClassRegistry, FixtureDefinition, FixtureNotFoundError, FixtureSet, IncludeMatcher, InitGenerator, InvalidFixtureParameterError, InvalidFixtureScopeDependencyError, InvalidFixtureScopeError, MatcherRegistry, ParameterExtractor, RaiseErrorMatcher, Reporter, Runner, Suite, SuiteRun, TestCase, TestRegistry, TestResult, TestRun
Constant Summary
collapse
- VERSION =
"0.2.0.alpha1"
Class Method Summary
collapse
Class Method Details
.autorun_disabled? ⇒ Boolean
42
43
44
|
# File 'lib/smartest.rb', line 42
def autorun_disabled?
@autorun_disabled == true
end
|
.disable_autorun! ⇒ Object
38
39
40
|
# File 'lib/smartest.rb', line 38
def disable_autorun!
@autorun_disabled = true
end
|
.fatal_exception?(error) ⇒ Boolean
57
58
59
60
61
62
|
# File 'lib/smartest.rb', line 57
def fatal_exception?(error)
error.is_a?(SystemExit) ||
error.is_a?(Interrupt) ||
error.is_a?(SignalException) ||
error.is_a?(NoMemoryError)
end
|
.register_autorun! ⇒ Object
46
47
48
49
50
51
52
53
54
55
|
# File 'lib/smartest.rb', line 46
def register_autorun!
return if autorun_disabled?
return if @autorun_registered
@autorun_registered = true
at_exit do
exit Runner.new.run if $ERROR_INFO.nil?
end
end
|
.reset! ⇒ Object
34
35
36
|
# File 'lib/smartest.rb', line 34
def reset!
@suite = Suite.new
end
|
.suite ⇒ Object
30
31
32
|
# File 'lib/smartest.rb', line 30
def suite
@suite ||= Suite.new
end
|