Is there a way to get a report of how long each test is taking to run on a Ruby on Rails project? I have a a small set of tests, 2 or 3, which take about 50% of the time and I'd like to find out which ones are.
+2
A:
Ideas of the top of my mind:
- test_benchmark: http://github.com/timocratic/test_benchmark
- test_benchmarker: http://github.com/myronmarston/test_benchmarker/
- If you are running rspec, you can use the command
--format profile
will give you the top 10 slowest tests - You could write data ... somewhere during setup and teardown of a test.
Pran
2010-04-02 02:34:24
I liked the output of test_benchmarker better.
J. Pablo Fernández
2010-04-03 14:21:07