How long does each test take to run in Ruby on Rails?
Is there a way to get开发者_如何学C 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.
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.
精彩评论