Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…duction/spec js file.
  • Loading branch information...
commit 84b2658165a577b9150b86b62f2301d0f1cd75e9 1 parent 6f06f3d
Miki Leskinen authored
Showing with 8 additions and 2 deletions.
  1. +6 −2 README.md
  2. +1 −0  run-acceptance-specs.sh
  3. +1 −0  specs.watchr
8 README.md
View
@@ -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:
1  run-acceptance-specs.sh
View
@@ -5,3 +5,4 @@ echo "Starting application..."
/usr/bin/env node ./run-acceptance-specs.js
echo "Stopping application..."
./stop-application.sh
+echo "Done."
1  specs.watchr
View
@@ -0,0 +1 @@
+watch('.*\.js') { system('./run-all-specs.sh') }
Please sign in to comment.
Something went wrong with that request. Please try again.