CapnKernul/minitest-reporters — pull request #42 by ffmike (2012-11-28 13:35:26+00:00)
Title: Add :slow_suite_times option to DefaultReporter

Now that we have a listing of slow test times, here's one that adds slow test classes. Sample:

MiniTest::Reporters.use! MiniTest::Reporters::DefaultReporter.new(:slow_count => 10, :slow_suite_count => 10)

Output:

Finished tests in 676.125362s, 0.6094 tests/s, 3.2494 assertions/s.

Slowest tests:

10.884097s BeverageSkuListGroupsControllerTest#test: reassigning groups during destroy for wines should reassign list items to no group when deleting first group.
10.844388s BeverageSkuListGroupsControllerTest#test: reassigning groups during destroy for wines should skip over other wine colors when finding previous group.
10.323083s BeverageSkuListGroupsControllerTest#test: reassigning groups during destroy for wines should reassign list items to previous group when deleting group.
9.761255s BeverageSkuListGroupsControllerTest#test: reassigning groups during destroy for wines should ignore inactive SKUs when finding previous group.
9.744171s BeverageSkuListGroupsControllerTest#test: reassigning groups during destroy for wines should not touch one color when deleting header on another color.
9.408082s BeverageSkuListsControllerTest#test: for a restaurant should not include beer or spirit SKUs on inventory list when retrieved as JSON.
9.387258s BeverageSkuListsControllerTest#test: for a restaurant with an inconsistent list on incremental sync should send email if hasn't sent email in last hour.
9.214619s BeverageSkuListGroupsControllerTest#test: For a restaurant should log device entity count if available.
8.984980s BeverageSkuListGroupsControllerTest#test: For a restaurant should get index as json.
8.805977s BeverageSkuListsControllerTest#test: for a restaurant with an inconsistent list on incremental sync should send the right email.

Slowest test classes:

125.085887s WinesControllerTest
105.238006s BeverageSkuListsControllerTest
89.879569s BeverageSkuListGroupsControllerTest
57.998455s SpiritsControllerTest
49.345494s BeersControllerTest
42.386150s BeverageSkusControllerTest
37.605750s InventoryActivitiesControllerTest
30.301538s PointOfSaleSkusControllerTest
25.924567s RestaurantsControllerTest
23.248283s AssetsControllerTest

412 tests, 2197 assertions, 0 failures, 0 errors, 0 skips