Skip to content

Commit

Permalink
Update to t/cover.
Browse files Browse the repository at this point in the history
  • Loading branch information
flatheadmill committed Jul 22, 2016
1 parent 069296b commit 3056a3e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions t/cover
Expand Up @@ -5,12 +5,10 @@ set -e
rm -rf coverage

count=1;
for file in $(find t -name \*.t.js); do
node_modules/.bin/istanbul cover -x 't/**' $file > /dev/null 2>&1
if [ -e coverage/coverage.json ]; then
mv coverage/coverage.json coverage/coverage$count.json
count=$(expr $count + 1)
fi
for file in $(find . ! -path '*/node_modules/*' -name \*.t.js); do
node_modules/.bin/istanbul cover -x 't/**' -x '*/t/**' $file > /dev/null 2>&1
mv coverage/coverage.json coverage/coverage$count.json
count=$(expr $count + 1)
done

node_modules/.bin/istanbul cover -x 't/**' t/fixtures/echo-1.js > /dev/null 2>&1
Expand Down

0 comments on commit 3056a3e

Please sign in to comment.