Created
January 15, 2014 12:41
-
-
Save holyketzer/8435501 to your computer and use it in GitHub Desktop.
Node.js Mocha runner
This file contains hidden or 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
#/bin/bash | |
if [[ "$OSTYPE" == "darwin"* ]]; then | |
echo "Mac OS X detected" | |
export NODE_ENV=test && node_modules/.bin/mocha --reporter spec --recursive test | |
else | |
echo | |
SET NODE_ENV=test && node_modules/.bin/mocha --reporter spec --recursive test | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment