Class: Minitest::Sprint::RakeReporter

Inherits:
SprintReporter 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

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

#nameObject

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

: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