Class: Turn::IsoRunner

Inherits:
Object
  • Object
show all
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

CrossRunner, SoloRunner

Constant Summary

Constants included from Colorize

Colorize::COLORIZE, Colorize::ERROR, Colorize::FAIL, Colorize::PASS, Colorize::SKIP

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Colorize

blue, bold, error, fail, green, magenta, pass, red, skip

Instance Attribute Details

#reporterObject (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

#startObject

Runs the list of test calls passed to it. This is used by #test_solo and #test_cross.



37
38
39
40
41
42
43
44
# File 'lib/turn/runners/isorunner.rb', line 37

def start
  suite = TestSuite.new
  testruns = @controller.files.collect do |file|
    name = file.sub(Dir.pwd+'/','')
    suite.new_case(name, file)
  end
  test_loop_runner(suite)
end