diff --git a/README.md b/README.md index fe37215..11c35e0 100644 --- a/README.md +++ b/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: diff --git a/run-acceptance-specs.sh b/run-acceptance-specs.sh index 1d298ed..db0605b 100755 --- a/run-acceptance-specs.sh +++ b/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." \ No newline at end of file diff --git a/specs.watchr b/specs.watchr new file mode 100644 index 0000000..1ee026b --- /dev/null +++ b/specs.watchr @@ -0,0 +1 @@ +watch('.*\.js') { system('./run-all-specs.sh') }