Skip to content

Instantly share code, notes, and snippets.

@thlorenz
Last active December 28, 2015 01:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thlorenz/7419223 to your computer and use it in GitHub Desktop.
Save thlorenz/7419223 to your computer and use it in GitHub Desktop.
Run zuul tests locally via mocha-phantomjs
#!/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