开发者

Fastest rails test runner: spork and zentest?

I ran across a thread about slow rspec tests that made me wonder which rails test runner configuration will result in the fast开发者_运维技巧est running recurring tests?

I'm aware that ZenTest / autotest-rails can be used in conjunction with spork, but is that the fastest option?


Just wanted to tell you about my experiences.. even tho this doesn't answer you question. I don't have experience with autotest yet, so can't comment on that. This is Rails 3 with RSpec, DatabaseCleaner and FactoryGirl. Here are the results without and with spork:

Finished in 0.22748 seconds
3 examples, 0 failures

real    0m9.541s
user    0m8.733s
sys 0m0.772s



Finished in 0.24727 seconds
3 examples, 0 failures

real    0m0.605s
user    0m0.200s
sys 0m0.080s

So, from 9.541 seconds down to half a second. Roughly a ten fold performance boost.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜