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