Class: Test::Unit::AutoRunner
- Inherits:
-
Object
- Object
- Test::Unit::AutoRunner
- Defined in:
- lib/test-unit-ext/priority.rb,
lib/test-unit-ext/xml-report.rb
Instance Method Summary collapse
- #options ⇒ Object
- #options_without_priority ⇒ Object
- #options_without_xml_report_support ⇒ Object
- #run ⇒ Object
- #run_without_xml_report_support ⇒ Object
Instance Method Details
#options ⇒ Object
147 148 149 150 151 152 153 |
# File 'lib/test-unit-ext/priority.rb', line 147 def opts = opts.on("--[no-]priority", "use priority mode") do |bool| TestSuite.priority_mode = bool end opts end |
#options_without_priority ⇒ Object
146 |
# File 'lib/test-unit-ext/priority.rb', line 146 alias_method :options_without_priority, :options |
#options_without_xml_report_support ⇒ Object
198 199 200 201 202 203 204 |
# File 'lib/test-unit-ext/xml-report.rb', line 198 def opts = opts.on("--[no-]priority", "use priority mode") do |bool| TestSuite.priority_mode = bool end opts end |
#run ⇒ Object
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_support ⇒ Object
212 |
# File 'lib/test-unit-ext/xml-report.rb', line 212 alias_method(:run_without_xml_report_support, :run) |