class Minitest::SprintReporter

Attributes

results[RW]

Public Class Methods

new() click to toggle source
# File lib/minitest/sprint_reporter.rb, line 5
def initialize
  self.results = []
end

Public Instance Methods

record(result) click to toggle source
# File lib/minitest/sprint_reporter.rb, line 9
def record result
  results << result unless result.passed? or result.skipped?
end
report() click to toggle source
# File lib/minitest/sprint_reporter.rb, line 13
def report
  return if results.empty?

  puts
  puts "Happy Happy Sprint List:"
  puts
  print_list
  puts
end