开发者

Hotkeys for Ruby Autotest

It would be nice to have some more control over autotest besides Ctrl+C, which reruns all specs.

When using autotest within my Rails 3 project I often find myself waiting for some specs to finish, as autotest is always rerunning all specs in any file where one spec failed (e.g. user_spec.rb is executed completely and not only the one failing spec). Is there any keyboard shortcut to tell autotest to only run the specs that failed in all files? Or maybe some kind of interactive mode where you can tell autotest to execute only one specific file (sometimes many specs break when refactoring and I fix them file by file 开发者_高级运维to stay sane).

If this doesn't exist, is there a good reason for it? I know that the whole spec suite should be run frequently and the above execution modes wouldn't do this, but IMHO this would really help in fixing individual specs quicker.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜