Skip to content

Commit

Permalink
Add watchr script for auto-running all specs after each change to pro…
Browse files Browse the repository at this point in the history
…duction/spec js file.
  • Loading branch information
Miki Leskinen committed Mar 10, 2011
1 parent 6f06f3d commit 84b2658
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Expand Up @@ -18,9 +18,13 @@ You will need a couple of node.js modules too:

## Specs

To run the zombie acceptance specs (every 3 seconds)
To run all specs with [watchr](https://github.com/mynyml/watchr) after each change to some production/test js file:

watch -n 3 ./run-acceptance-specs.sh
watchr specs.watchr

To run the zombie acceptance specs

./run-acceptance-specs.sh

To run the unit specs:

Expand Down
1 change: 1 addition & 0 deletions run-acceptance-specs.sh
Expand Up @@ -5,3 +5,4 @@ echo "Starting application..."
/usr/bin/env node ./run-acceptance-specs.js
echo "Stopping application..."
./stop-application.sh
echo "Done."
1 change: 1 addition & 0 deletions specs.watchr
@@ -0,0 +1 @@
watch('.*\.js') { system('./run-all-specs.sh') }

0 comments on commit 84b2658

Please sign in to comment.