Find a list of slow rspec tests
rspec, ruby-on-rails-3, testing
Solution
That's actually built right in to the rspec command. Just use the `-p` or `--profile` flag while you're running all your rspec tests.
Problem
How can I find a list of the slowest rspec tests? I want to refactor those to run faster. I tried looking for gems but can't find any. I was thinking of putting something in ``` Rspec.before(:each) ``` and ``` Rspec.after(:each) ``` blocks to generate this list. But I don't know how to access the name of the spec.