Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

An intelligent autospec script using Watchr

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 lib
Octocat-spinner-32 .document
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
Octocat-spinner-32 VERSION
Octocat-spinner-32 autospec.watchr.gemspec
README.rdoc

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

Something went wrong with that request. Please try again.