Skip to content

Instantly share code, notes, and snippets.

@philsch
Created December 22, 2016 10:10
Show Gist options
  • Save philsch/41d65f8704d3af7e06bf317bdef3bd23 to your computer and use it in GitHub Desktop.
Save philsch/41d65f8704d3af7e06bf317bdef3bd23 to your computer and use it in GitHub Desktop.
Run mocha tests isolated with TeamCity reporter switch
"scripts": {
"test_isolated": "/bin/bash -c 'if [ -z $TEAMCITY_VERSION ]; then reporter=\"spec\"; else reporter=\"mocha-teamcity-reporter\"; fi; find ./test -type f -iname \"*.spec.js\" -exec ./node_modules/.bin/mocha --compilers js:babel-core/register {} \\;'"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment