class Minitest::SummaryReporter
def aggregated_results # :nodoc:
def aggregated_results # :nodoc: filtered_results = results.dup filtered_results.reject!(&:skipped?) unless options[:verbose] filtered_results.each_with_index.map do |result, i| "\n%3d) %s" % [i+1, result] end.join("\n") + "\n" end
def report # :nodoc:
def report # :nodoc: super io.sync = self.old_sync io.puts # finish the dots io.puts io.puts statistics io.puts aggregated_results io.puts summary end
def start # :nodoc:
def start # :nodoc: super io.puts "Run options: #{options[:args]}" io.puts io.puts "# Running:" io.puts self.sync = io.respond_to? :"sync=" # stupid emacs self.old_sync, io.sync = io.sync, true if self.sync end
def statistics # :nodoc:
def statistics # :nodoc: "Finished in %.6fs, %.4f runs/s, %.4f assertions/s." % [total_time, count / total_time, assertions / total_time] end
def summary # :nodoc:
def summary # :nodoc: "%d runs, %d assertions, %d failures, %d errors, %d skips" % [count, assertions, failures, errors, skips] end