Ruby gem to find out what your slow tests are.
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
LICENSE
README.md
profile-unit.gemspec

README.md

profile-unit

Ruby gem that provides a runner that outputs your slowest tests.

Usage

Run as follows to get output for your slowest 20 tests.

Rails

Add ProfilingHelper to your test_helper.rb.

  class ActiveSupport::TestCase
    ...
    include ProfilingHelper
    ...
  end

Make sure to set the test runner to see the test output:

rake test:units TESTOPTS="-- --runner=profiling"
rake test:functionals TESTOPTS="--runner=profiling"
rake test:integration TESTOPTS="--runner=profiling"
```