Class: Minitest::Queue::OrderReporter
- Inherits:
-
Reporters::BaseReporter
- Object
- Reporters::BaseReporter
- Minitest::Queue::OrderReporter
- Defined in:
- lib/minitest/queue/order_reporter.rb
Instance Method Summary collapse
- #before_test(test) ⇒ Object
-
#initialize(options = {}) ⇒ OrderReporter
constructor
A new instance of OrderReporter.
- #report ⇒ Object
- #start ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ OrderReporter
Returns a new instance of OrderReporter.
5 6 7 8 9 |
# File 'lib/minitest/queue/order_reporter.rb', line 5 def initialize( = {}) @path = .delete(:path) @file = nil super end |
Instance Method Details
#before_test(test) ⇒ Object
16 17 18 19 20 |
# File 'lib/minitest/queue/order_reporter.rb', line 16 def before_test(test) super file.puts("#{test.class.name}##{test.name}") file.flush end |
#report ⇒ Object
22 23 24 |
# File 'lib/minitest/queue/order_reporter.rb', line 22 def report file.close end |
#start ⇒ Object
11 12 13 14 |
# File 'lib/minitest/queue/order_reporter.rb', line 11 def start super file.truncate(0) end |