Hotkeys for Ruby Autotest

196 views Asked by At

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

There are 0 answers