Skip to content
Browse files

Add watchr script for auto-running all specs after each change to pro…

…duction/spec js file.
  • Loading branch information...
1 parent 6f06f3d commit 84b2658165a577b9150b86b62f2301d0f1cd75e9 @mileskin committed Mar 10, 2011
Showing with 8 additions and 2 deletions.
  1. +6 −2 README.md
  2. +1 −0 run-acceptance-specs.sh
  3. +1 −0 specs.watchr
View
8 README.md
@@ -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:
View
1 run-acceptance-specs.sh
@@ -5,3 +5,4 @@ echo "Starting application..."
/usr/bin/env node ./run-acceptance-specs.js
echo "Stopping application..."
./stop-application.sh
+echo "Done."
View
1 specs.watchr
@@ -0,0 +1 @@
+watch('.*\.js') { system('./run-all-specs.sh') }

0 comments on commit 84b2658

Please sign in to comment.
Something went wrong with that request. Please try again.