Class: Minitest::Sprint::RakeReporter
- Inherits:
-
SprintReporter
- Object
- AbstractReporter
- SprintReporter
- Minitest::Sprint::RakeReporter
- Defined in:
- lib/minitest/sprint.rb
Overview
An extra minitest reporter to output how to rerun failures using rake.
Instance Attribute Summary collapse
-
#name ⇒ Object
The name of the rake task to rerun.
Attributes inherited from SprintReporter
Instance Method Summary collapse
-
#initialize(name = nil) ⇒ RakeReporter
constructor
:nodoc:.
-
#print_list ⇒ Object
:nodoc:.
Methods inherited from SprintReporter
Methods inherited from AbstractReporter
#passed?, #prerecord, #record, #report, #start, #synchronize
Constructor Details
#initialize(name = nil) ⇒ RakeReporter
:nodoc:
93 94 95 96 |
# File 'lib/minitest/sprint.rb', line 93 def initialize name = nil # :nodoc: super() self.name = name end |
Instance Attribute Details
#name ⇒ Object
The name of the rake task to rerun. Defaults to nil.
91 92 93 |
# File 'lib/minitest/sprint.rb', line 91 def name @name end |
Instance Method Details
#print_list ⇒ Object
:nodoc:
98 99 100 101 102 |
# File 'lib/minitest/sprint.rb', line 98 def print_list # :nodoc: results.each do |result| puts [" rake", name, "N=#{result.class_name}##{result.name}"].compact.join(" ") end end |