Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SlowTestReporter #41

Merged
merged 1 commit into from Nov 27, 2012
Merged

Add SlowTestReporter #41

merged 1 commit into from Nov 27, 2012

Conversation

ghost
Copy link

@ghost ghost commented Nov 23, 2012

SlowTestReporter is identical to DefaultReporter, except that at the end of the output it lists your slowest tests to help you track down performance problems:

Running tests:

...............................

Finished tests in 49.962667s, 0.6205 tests/s, 1.0608 assertions/s.

3.314892s WineTest#test: #varietal_group should recognize sparkling blends.
2.123556s WineTest#test: #claim should not blow up claiming unrelated wines.
1.973160s WineTest#test: #claim_family should not blow up claiming unrelated wines without current winery.
1.934369s WineTest#test: #claim_family should claim siblings of specified wine.
1.919199s WineTest#test: #claim_family should claim children of specified wine.

The slow_count option lets you adjust the amount of output:

MiniTest::Reporters.use! MiniTest::Reporters::SlowTestReporter.new(:slow_count => 20)

@kern kern merged commit b3065f2 into minitest-reporters:master Nov 27, 2012
@kern
Copy link
Collaborator

kern commented Nov 27, 2012

Thanks for this! I combined this with DefaultReporter using the :slow_count option. Pushed in 0.13.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant