开发者

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:

  1. test_benchmark: http://github.com/timocratic/test_benchmark
  2. test_benchmarker: http://github.com/myronmarston/test_benchmarker/
  3. If you are running rspec, you can use the command --format profile will give you the top 10 slowest tests
  4. You could write data ... somewhere during setup and teardown of a test.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜