You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
378 B
19 lines
378 B
4 years ago
|
#!/bin/sh
|
||
|
|
||
|
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
|
||
|
mv coverage/coverage.json coverage/coverage$count.json
|
||
|
count=$(expr $count + 1)
|
||
|
done
|
||
|
|
||
|
node_modules/.bin/istanbul report --root coverage --dir coverage > /dev/null
|
||
|
|
||
|
sed -i -e s,'^SF:'`pwd`/,SF:, coverage/lcov.info
|
||
|
|
||
|
exit 0
|