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
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.
Methods included from Colorize
blue, bold, color_supported?, colorize?, #colorize?, error, fail, green, included, magenta, pass, red, skip
Instance Attribute Details
#reporter ⇒ Object (readonly)
Returns the value of attribute reporter.
18 19 20 |
# File 'lib/turn/runners/isorunner.rb', line 18 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.
38 39 40 41 42 43 44 45 |
# File 'lib/turn/runners/isorunner.rb', line 38 def start suite = TestSuite.new testruns = @config.files.collect do |file| name = file.sub(Dir.pwd+'/','') suite.new_case(name, file) end test_loop_runner(suite) end |