Class: Minitest::RakeReporter
- Inherits:
-
SprintReporter
- Object
- AbstractReporter
- SprintReporter
- Minitest::RakeReporter
- Defined in:
- lib/minitest/rake_reporter.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Attributes inherited from SprintReporter
Instance Method Summary collapse
-
#initialize(name = nil) ⇒ RakeReporter
constructor
A new instance of RakeReporter.
- #print_list ⇒ Object
Methods inherited from SprintReporter
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
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/minitest/rake_reporter.rb', line 5 def name @name end |
Instance Method Details
#print_list ⇒ Object
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 |