method
start_dump
start_dump()
public
Hide source
# File lib/spec/runner/formatter/profile_formatter.rb, line 30 def start_dump super @output.puts "\n\nTop 10 slowest examples:\n" @example_times = @example_times.sort_by do |description, example, time| time end.reverse @example_times[0..9].each do |description, example, time| @output.print red(sprintf("%.7f", time)) @output.puts " #{description} #{example}" end @output.flush end