Skip to content

Instantly share code, notes, and snippets.

@tmcw
Created December 21, 2015 21:15
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 tmcw/10834e08803b32292c81 to your computer and use it in GitHub Desktop.
Save tmcw/10834e08803b32292c81 to your computer and use it in GitHub Desktop.
# unpack sauce connect
# cd sc-*-linux && ./bin/sc --user $SAUCE_USERNAME --api-key $SAUCE_ACCESS_KEY --readyfile ~/sauce_is_ready:
# wait for sauce to be ready
# while [ ! -e ~/sauce_is_ready ]; do sleep 1; done
# start testing server
trap "shutdown" SIGINT SIGTERM
shutdown() {
echo "got shutdown"
kill $SERVER_PID
kill $SELENIUM_PID
}
npm run start-production &
SERVER_PID=$!
selenium-server -log /tmp/quiet &
SELENIUM_PID=$!
sleep 10
./node_modules/.bin/nightwatch
shutdown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment