This is basically a watchr script to autorun Rspec specs.
What’s different to RSpec’s autospec
-
The entire suite is not run on start.
-
Only the current file spec is run on file save.
-
If an error is found during a run, when that file is saved, only that test is rerun
** If that test is fixed, then only that spec file is rerun
-
It tracks multiple failures and helps you to work through fixing them without continually re-running all your specs.
Usage
In your project root, run
autospec.watchr
You can run the next saved failure (or if there are no saved failures, all specs) by pressing Ctrl+\ You can quit with Ctrl+C
Enjoy!
I’d love some feedback if you get a chance to play with this.
Andrew