Method: Minitest::SummaryReporter#aggregated_results

Defined in:
lib/minitest.rb

#aggregated_results(io) ⇒ Object

:nodoc:

[View source]

897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
# File 'lib/minitest.rb', line 897

def aggregated_results io # :nodoc:
  filtered_results = results.dup
  filtered_results.reject!(&:skipped?) unless
    options[:verbose] or options[:show_skips]

  skip = options[:skip] || []

  filtered_results.each_with_index { |result, i|
    next if skip.include? result.result_code

    io.puts "\n%3d) %s" % [i+1, result]
  }
  io.puts
  io
end