Minitest::Profiler
minitest-profiler hooks into Minitest and finds your slow-running tests.
Installation
Add this line to your application's Gemfile:
gem 'minitest-profiler'
And then execute:
$ bundle
Or install it yourself as:
$ gem install minitest-profiler
Usage
- In your
test_helperfile, mix in the profiler to your test case class.
class ActiveSupport::TestCase
include Minitest::Profiler
end
- Run your tests as usual. A report will be printed out after all your tests finish running.
Notes
- We've only tested this on a Rails 4 app so far.
Contributing
- Fork it ( http://github.com/nilenso/minitest-profiler/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request