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 |
# File 'lib/minitest/queue/order_reporter.rb', line 5 def initialize( = {}) @path = .delete(:path) super end |
Instance Method Details
#before_test(test) ⇒ Object
15 16 17 18 19 |
# File 'lib/minitest/queue/order_reporter.rb', line 15 def before_test(test) super @file.puts("#{test.class.name}##{test.name}") @file.flush end |
#report ⇒ Object
21 22 23 |
# File 'lib/minitest/queue/order_reporter.rb', line 21 def report @file.close end |
#start ⇒ Object
10 11 12 13 |
# File 'lib/minitest/queue/order_reporter.rb', line 10 def start @file = File.open(@path, 'w+') super end |