Last active
December 28, 2015 01:18
-
-
Save thlorenz/7419223 to your computer and use it in GitHub Desktop.
Run zuul tests locally via mocha-phantomjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
set -e | |
function clean { | |
echo "taking down zuul test server" | |
kill $! | |
} | |
trap clean INT TERM ERR | |
# assuming zuul and mocha phantomjs are installed as devDependencies of this module | |
node_modules/.bin/zuul --local 3100 --ui mocha-qunit -- test/*.js & | |
node_modules/.bin/mocha-phantomjs http://localhost:3100/__zuul | |
clean |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment