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/simple_stub.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/test_run_state.rb,
lib/smartest/helper_registry.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/constant_stub_helpers.rb,
lib/smartest/fixture_class_registry.rb,
lib/smartest/init_browser_generator.rb
Defined Under Namespace
Modules: ConstantStubHelpers, DSL, Expectations, Matchers, StatusReason
Classes: AndMatcher, AroundSuiteContext, AroundSuiteRunError, AroundTestContext, AroundTestFixtureScopeError, AroundTestRunError, AssertionFailed, BeAKindOfMatcher, BeNilMatcher, CLIArguments, ChangeMatcher, CircularFixtureDependencyError, CompoundMatcher, ContainExactlyMatcher, DuplicateFixtureError, EndWithMatcher, EqMatcher, Error, ExecutionContext, ExpectationTarget, Fixture, FixtureClassRegistry, FixtureDefinition, FixtureNotFoundError, FixtureSet, HelperRegistry, IncludeMatcher, InitBrowserGenerator, InitGenerator, InvalidFixtureParameterError, InvalidFixtureScopeDependencyError, InvalidFixtureScopeError, MatchMatcher, Matcher, MatcherRegistry, OrMatcher, ParameterExtractor, PendingPassedError, RaiseErrorMatcher, Reporter, Runner, SimpleStub, Skipped, StartWithMatcher, Suite, SuiteRun, TestCase, TestRegistry, TestResult, TestRun, TestRunState
Constant Summary
collapse
- VERSION =
"0.3.3.alpha4"
Class Method Summary
collapse
Class Method Details
.autorun_disabled? ⇒ Boolean
47
48
49
|
# File 'lib/smartest.rb', line 47
def autorun_disabled?
@autorun_disabled == true
end
|
.disable_autorun! ⇒ Object
43
44
45
|
# File 'lib/smartest.rb', line 43
def disable_autorun!
@autorun_disabled = true
end
|
.fatal_exception?(error) ⇒ Boolean
70
71
72
73
74
75
|
# File 'lib/smartest.rb', line 70
def fatal_exception?(error)
error.is_a?(SystemExit) ||
error.is_a?(Interrupt) ||
error.is_a?(SignalException) ||
error.is_a?(NoMemoryError)
end
|
.install_dsl! ⇒ Object
62
63
64
65
66
67
68
|
# File 'lib/smartest.rb', line 62
def install_dsl!
if kernel_prepend_effective?
Kernel.prepend DSL
else
Object.include DSL
end
end
|
.register_autorun! ⇒ Object
51
52
53
54
55
56
57
58
59
60
|
# File 'lib/smartest.rb', line 51
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
39
40
41
|
# File 'lib/smartest.rb', line 39
def reset!
@suite = Suite.new
end
|
.suite ⇒ Object
35
36
37
|
# File 'lib/smartest.rb', line 35
def suite
@suite ||= Suite.new
end
|