Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Ruby gem to find out what your slow tests are.
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib fix path issues
.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"
Something went wrong with that request. Please try again.