开发者

How long does each test take to run in Ruby on Rails?

开发者 https://www.devze.com 2022-12-25 04:16 出处:网络
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

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

精彩评论

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

关注公众号