Module: Easytest
- Defined in:
- lib/easytest.rb,
lib/easytest/cli.rb,
lib/easytest/dsl.rb,
lib/easytest/case.rb,
lib/easytest/hook.rb,
lib/easytest/utils.rb,
lib/easytest/errors.rb,
lib/easytest/runner.rb,
lib/easytest/version.rb,
lib/easytest/reporter.rb,
lib/easytest/matcher/be.rb,
lib/easytest/expectation.rb,
lib/easytest/matcher/nil.rb,
lib/easytest/matcher/base.rb,
lib/easytest/matcher/be_a.rb,
lib/easytest/matcher/true.rb,
lib/easytest/matcher/empty.rb,
lib/easytest/matcher/equal.rb,
lib/easytest/matcher/false.rb,
lib/easytest/matcher/match.rb,
lib/easytest/matcher/raise.rb,
lib/easytest/matcher/include.rb,
lib/easytest/matcher/kind_of.rb,
lib/easytest/matcher/satisfy.rb,
lib/easytest/matcher/instance_of.rb,
lib/easytest/matcher/raise_nothing.rb,
lib/easytest/matcher/contain_exactly.rb,
lib/easytest/matcher/have_attributes.rb
Defined Under Namespace
Modules: DSL, Matcher, Utils
Classes: CLI, Case, Error, Expectation, FatalError, Hook, MatchError, Reporter, Runner
Constant Summary
collapse
- VERSION =
"0.11.0"
Class Method Summary
collapse
Class Method Details
.add_case(new_case) ⇒ Object
39
40
41
|
# File 'lib/easytest.rb', line 39
def self.add_case(new_case)
@runner.add_case(new_case)
end
|
.add_hook(hook) ⇒ Object
43
44
45
|
# File 'lib/easytest.rb', line 43
def self.add_hook(hook)
@runner.add_hook(hook)
end
|
.run ⇒ Object
47
48
49
|
# File 'lib/easytest.rb', line 47
def self.run
@runner.run
end
|
.start(no_tests_forbidden: true) ⇒ Object
35
36
37
|
# File 'lib/easytest.rb', line 35
def self.start(no_tests_forbidden: true)
@runner = Runner.new(no_tests_forbidden: no_tests_forbidden)
end
|
.test_dir ⇒ Object
51
52
53
|
# File 'lib/easytest.rb', line 51
def self.test_dir
"test"
end
|
.test_files_location ⇒ Object
55
56
57
|
# File 'lib/easytest.rb', line 55
def self.test_files_location
"#{test_dir}/**/*_test.rb"
end
|