Skip to content

Commit

Permalink
Making sure the coverage uses the same Mocha options as npm test.
Browse files Browse the repository at this point in the history
  • Loading branch information
honzajavorek committed Feb 23, 2016
1 parent ff85ec9 commit 0822af4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/cov
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ $COV --exclude node_modules,.git,test --path relative . ./src-cov 1>&2
cp -r ./test ./src-cov/test
cp ./package.json ./src-cov

$MOCHA --reporter $REPORTER --recursive --timeout 120000 --compilers 'coffee:coffee-script/register' './src-cov/test/**/*-test.coffee'
find ./src-cov/test/ -name '*-test.coffee' | xargs "$MOCHA" \
--compilers 'coffee:coffee-script/register' \
--reporter "$REPORTER" \
--timeout 120000 \
--recursive

rm -rf ./src-cov

1 comment on commit 0822af4

@w-vi
Copy link
Member

@w-vi w-vi commented on 0822af4 Feb 23, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.