Class: Test::Unit::UI::XML::TestRunner
- Inherits:
-
TestRunner
- Object
- TestRunner
- Test::Unit::UI::XML::TestRunner
- Includes:
- ERB::Util
- Defined in:
- lib/test/unit/ui/xml/testrunner.rb,
lib/test/unit/ui/xml/testrunner.rb
Overview
Runs a Test::Unit::TestSuite and outputs XML.
Instance Attribute Summary
Attributes inherited from TestRunner
Instance Method Summary collapse
-
#initialize(suite, options = {}) ⇒ TestRunner
constructor
Creates a new TestRunner for running the passed suite.
Methods inherited from TestRunner
Methods included from TestRunnerUtilities
#run, #start_command_line_test
Constructor Details
#initialize(suite, options = {}) ⇒ TestRunner
Creates a new TestRunner for running the passed suite. :output option specifies where runner output should go to; defaults to STDOUT.
18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/test/unit/ui/xml/testrunner.rb', line 18 def initialize(suite, ={}) super @output = @options[:output] || STDOUT if @options[:output_file_descriptor] @output = IO.new(@options[:output_file_descriptor], "w") end @already_outputted = false @indent = 0 @top_level = true @current_test = nil @current_test_suite = nil @already_outputted = false end |