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
Constructor Details
#initialize(name = nil) ⇒ RakeReporter
:nodoc:
86 87 88 89 |
# File 'lib/minitest/sprint.rb', line 86 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.
84 85 86 |
# File 'lib/minitest/sprint.rb', line 84 def name @name end |
Instance Method Details
#print_list ⇒ Object
:nodoc:
91 92 93 94 95 |
# File 'lib/minitest/sprint.rb', line 91 def print_list # :nodoc: results.each do |result| puts [" rake", name, "N=#{result.class_name}##{result.name}"].compact.join(" ") end end |