Class: Test::Unit::UI::Tap::BaseTestRunner

Inherits:
Test::Unit::UI::TestRunner
  • Object
show all
Defined in:
lib/test/unit/ui/tap/base_testrunner.rb

Overview

Base class for all TAP runners.

Direct Known Subclasses

JSONTestRunner, PerlTestRunner, YAMLTestRunner

Constant Summary collapse

REVISION =

TAP-Y/J Revision

4

Instance Method Summary collapse

Constructor Details

#initialize(suite, options = {}) ⇒ BaseTestRunner

Returns a new instance of BaseTestRunner.



18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/test/unit/ui/tap/base_testrunner.rb', line 18

def initialize(suite, options={})
  super

  @output = @options[:output] || STDOUT

  @level = 0

  @_source_cache = {}
  @already_outputted = false
  @top_level = true

  @counts = Hash.new{ |h,k| h[k] = 0 }
end