Class: Minitest::Sprint::RakeReporter

Inherits:
SprintReporter
  • Object
show all
Defined in:
lib/minitest/sprint.rb

Overview

An extra minitest reporter to output how to rerun failures using rake.

Instance Attribute Summary collapse

Attributes inherited from SprintReporter

#results, #style

Instance Method Summary collapse

Methods inherited from SprintReporter

#record, #report

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

#nameObject

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

: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