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::COLORLESS_TERMINALS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Colorize

blue, bold, color_supported?, colorize?, #colorize?, error, fail, green, included, 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.



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