Skip to content

Instantly share code, notes, and snippets.

Created Oct 8, 2013
What would you like to do?
Shell script to run express app on background, run API test and, kill app and return exit status from the test runnure
./node_modules/coffee-script/bin/coffee &
sleep 5
dredd apiary.apib http://localhost:3000/
kill -9 $PID
exit $RESULT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment