Class: Test::Unit::AutoRunner

Inherits:
Object
  • Object
show all
Defined in:
lib/test-unit-ext/priority.rb,
lib/test-unit-ext/xml-report.rb

Instance Method Summary collapse

Instance Method Details

#optionsObject



147
148
149
150
151
152
153
# File 'lib/test-unit-ext/priority.rb', line 147

def options
  opts = options_without_priority
  opts.on("--[no-]priority", "use priority mode") do |bool|
    TestSuite.priority_mode = bool
  end
  opts
end

#options_without_priorityObject



146
# File 'lib/test-unit-ext/priority.rb', line 146

alias_method :options_without_priority, :options

#options_without_xml_report_supportObject



198
199
200
201
202
203
204
# File 'lib/test-unit-ext/xml-report.rb', line 198

def options
  opts = options_without_priority
  opts.on("--[no-]priority", "use priority mode") do |bool|
    TestSuite.priority_mode = bool
  end
  opts
end

#runObject



213
214
215
216
217
218
219
220
221
# File 'lib/test-unit-ext/xml-report.rb', line 213

def run
  passed = run_without_xml_report_support
  if @xml_report_file
    File.open(@xml_report_file, "w") do |f|
      f.print(@suite.result.to_xml)
    end
  end
  passed
end

#run_without_xml_report_supportObject



212
# File 'lib/test-unit-ext/xml-report.rb', line 212

alias_method(:run_without_xml_report_support, :run)