Class: Minitest::RakeReporter

Inherits:
SprintReporter show all
Defined in:
lib/minitest/rake_reporter.rb

Instance Attribute Summary collapse

Attributes inherited from SprintReporter

#results

Instance Method Summary collapse

Methods inherited from SprintReporter

#record, #report

Constructor Details

#initialize(name = nil) ⇒ RakeReporter

Returns a new instance of RakeReporter.



7
8
9
10
# File 'lib/minitest/rake_reporter.rb', line 7

def initialize name = nil
  self.results = []
  self.name    = name
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/minitest/rake_reporter.rb', line 5

def name
  @name
end

Instance Method Details



12
13
14
15
16
# File 'lib/minitest/rake_reporter.rb', line 12

def print_list
  results.each do |result|
    puts ["  rake", name, "N=#{result.class_name}##{result.name}"].compact.join(" ")
  end
end