Class: MiniTest::Perf::Cli
- Inherits:
-
Object
- Object
- MiniTest::Perf::Cli
- Defined in:
- lib/minitest/perf/cli.rb
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/minitest/perf/cli.rb', line 4 def run puts "Slowest individual tests" puts Statistics.slowest_tests.each do |suite, test_name, time| printf "% 12.2fms | %s#%s\n", time * 1000, suite, test_name end puts puts puts "Slowest test suites" puts Statistics.slowest_suites.each do |suite_name, tests_count, avg_test_time| printf "% 12.2fms | % 4i | %s\n", avg_test_time * 1000, tests_count, suite_name end end |