Module: Cucover
- Defined in:
- lib/cucover.rb
Defined Under Namespace
Modules: LazyFeature, LazyStepInvocation
Classes: Cache, SourceFileCache, StatusCache, TestRun
Class Method Summary
collapse
Class Method Details
.fail_current_test! ⇒ Object
113
114
115
|
# File 'lib/cucover.rb', line 113
def fail_current_test!
current_test.fail!
end
|
.record(source_file) ⇒ Object
117
118
119
|
# File 'lib/cucover.rb', line 117
def record(source_file)
current_test.record(source_file)
end
|
.should_skip? ⇒ Boolean
121
122
123
|
# File 'lib/cucover.rb', line 121
def should_skip?
not current_test.may_execute?
end
|
.start_test(test, visitor) ⇒ Object
105
106
107
108
109
110
111
|
# File 'lib/cucover.rb', line 105
def start_test(test, visitor)
@current_test = TestRun.new(test.file, visitor)
@current_test.watch do
yield
end
end
|