Class: Turn::IsoRunner
- Inherits:
-
Object
- Object
- Turn::IsoRunner
- Includes:
- Colorize
- Defined in:
- lib/turn/runners/isorunner.rb
Overview
IsoRunner
Iso Runner provides means from running unit test in isolated processes. It can do this either by running each test in isolation (solo testing) or in pairs (cross testing).
The IsoRunner proiveds some variery in ouput formats and can also log results to a file.
Direct Known Subclasses
Constant Summary
Constants included from Colorize
Colorize::COLORIZE, Colorize::ERROR, Colorize::FAIL, Colorize::PASS
Instance Attribute Summary collapse
-
#reporter ⇒ Object
readonly
Returns the value of attribute reporter.
Instance Method Summary collapse
-
#start ⇒ Object
Runs the list of test calls passed to it.
Instance Attribute Details
#reporter ⇒ Object (readonly)
Returns the value of attribute reporter.
16 17 18 |
# File 'lib/turn/runners/isorunner.rb', line 16 def reporter @reporter end |
Instance Method Details
#start ⇒ Object
Runs the list of test calls passed to it. This is used by #test_solo and #test_cross.
34 35 36 37 38 39 40 |
# File 'lib/turn/runners/isorunner.rb', line 34 def start suite = TestSuite.new testruns = @controller.files.collect do |file| suite.new_case(file) end test_loop_runner(suite) end |