class Minitest::Reporters::SpoutReporter

Public Instance Methods

record(test) click to toggle source
Calls superclass method
# File lib/spout/tests.rb, line 33
def record(test)
  super
  if !test.skipped? && test.failure
    print "    "
    print_colored_status(test)
    print "    #{test.name}"
    puts
    print "             "
    print test.failure.to_s.gsub("\n", "\n             ")
    puts
    puts
  end
end
report() click to toggle source
Calls superclass method
# File lib/spout/tests.rb, line 20
def report
  super
  puts format("Finished in %.5f seconds.", total_time)
  puts
  print format("%d tests", count).white
  print format(", %d assertions, ", assertions)
  color = failures.zero? && errors.zero? ? :green : :red
  print format("%d failures, %d errors, ", failures, errors).send(color)
  print format("%d skips", skips).yellow
  puts
  puts
end
start() click to toggle source
Calls superclass method
# File lib/spout/tests.rb, line 14
def start
  super
  puts "Started spout tests".white
  puts
end

Protected Instance Methods

after_suite(suite) click to toggle source
# File lib/spout/tests.rb, line 64
def after_suite(suite)
  puts
end
before_suite(suite) click to toggle source
# File lib/spout/tests.rb, line 60
def before_suite(suite)
  puts suite
end
print_colored_status(test) click to toggle source