Skip to content

Commit

Permalink
use mocha --recursive, no more find/xargs
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba-kubula committed Apr 14, 2015
1 parent 2480f2b commit ba0438b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/cov
Expand Up @@ -14,7 +14,7 @@ $COV --exclude node_modules,.git,test --path relative . ./src-cov 1>&2
cp -r ./test ./src-cov/test
cp ./package.json ./src-cov

# Excluding test breaking coveralls report :( Reporting to coveralls.io for further investigation
find ./src-cov/test/ | grep "\-test" | xargs $MOCHA --reporter $REPORTER --compilers 'coffee:coffee-script/register' -i -g 'Using workaround for hooks in ruby' -g 'when using --server'
# Excluding test breaking coveralls report :( Reporting to coveralls.io for further investigation
$MOCHA --reporter $REPORTER --recursive --timeout 120000 --compilers 'coffee:coffee-script/register' -i -g 'Using workaround for hooks in ruby' -i -g 'when using --server' './src-cov/test/**/*-test.coffee'

rm -rf ./src-cov
2 changes: 1 addition & 1 deletion scripts/mocha
@@ -1,3 +1,3 @@
#!/bin/sh
cd $(dirname $0)/..
find ./test/ -name '*-test.coffee' | xargs ./node_modules/.bin/mocha --timeout 20000 --reporter spec --compilers 'coffee:coffee-script/register'
./node_modules/.bin/mocha --timeout 120000 --reporter spec --compilers 'coffee:coffee-script/register' --recursive './test/**/*-test.coffee'

0 comments on commit ba0438b

Please sign in to comment.