Class: Minitest::Queue::BuildStatusReporter::JUnitReporter
- Inherits:
-
Object
- Object
- Minitest::Queue::BuildStatusReporter::JUnitReporter
- Defined in:
- lib/minitest/queue/build_status_reporter.rb
Instance Method Summary collapse
-
#initialize(file, error_reports) ⇒ JUnitReporter
constructor
A new instance of JUnitReporter.
- #write ⇒ Object
Constructor Details
#initialize(file, error_reports) ⇒ JUnitReporter
Returns a new instance of JUnitReporter.
8 9 10 11 |
# File 'lib/minitest/queue/build_status_reporter.rb', line 8 def initialize(file, error_reports) @file = file @error_reports = error_reports end |
Instance Method Details
#write ⇒ Object
13 14 15 16 17 |
# File 'lib/minitest/queue/build_status_reporter.rb', line 13 def write File.open(@file, 'w+') do |file| format_document(generate_document(@error_reports), file) end end |