class Sus::Config
def print_slow_tests(output, assertions, threshold = 0.1)
def print_slow_tests(output, assertions, threshold = 0.1) slowest_tests = assertions.passed.select{|test| test.clock > threshold}.sort_by(&:clock).reverse! if slowest_tests.empty? output.puts "🐇 No slow tests found! Well done!" else output.puts "🐢 Slow tests:" slowest_tests.each do |test| output.puts "\t", :variable, test.clock, :reset, ": ", test.target end end end