Class: Test::Unit::UI::Tap::TestRunner

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

Overview

Runs a Test::Unit::TestSuite and outputs result as TAP format.

Instance Attribute Summary

Attributes inherited from Test::Unit::UI::TestRunner

#listeners

Instance Method Summary collapse

Methods included from Test::Unit::UI::TestRunnerUtilities

#run, #start_command_line_test

Constructor Details

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

Returns a new instance of TestRunner.



18
19
20
21
22
23
# File 'lib/test/unit/ui/tap/testrunner.rb', line 18

def initialize(suite, options={})
  super
  @output = @options[:output] || STDOUT
  @n_tests = 0
  @already_outputted = false
end

Instance Method Details

#startObject

Begins the test run.



26
27
28
29
30
31
32
# File 'lib/test/unit/ui/tap/testrunner.rb', line 26

def start
  result = super
  def result.passed?
    true # for prove commend :<
  end
  result
end