class Minitest::Reporters::SpecReporter
def report
def report super if @print_failure_summary failed_test_groups = tests.reject { |test| test.failures.empty? } .sort_by { |test| [test_class(test).to_s, test.name] } .group_by { |test| test_class(test).to_s } unless failed_test_groups.empty? print(red('Failures and errors:')) failed_test_groups.each { |name, tests| print_failure(name, tests) } end end puts('Finished in %.5fs' % total_time) print('%d tests, %d assertions, ' % [count, assertions]) color = failures.zero? && errors.zero? ? :green : :red print(send(color) { '%d failures, %d errors, ' } % [failures, errors]) print(yellow { '%d skips' } % skips) puts end