Switch to nyc, babel-plugin-istanbul & codecov-node for code coverage (#4885)
* Switch to nyc, babel-plugin-istanbul & codecov-node for code coverage This setup (very much like Babylon's) let us trace code coverage back to the `src/` directories of packages. * Exclude package tests from coverage report * fix: upgrade to version of nyc that tweaks a couple more things for babel * fix: remove comment based on @hzoo's review
This commit is contained in:
committed by
Henry Zhu
parent
f98d824ae7
commit
db67d7fdce
6
Makefile
6
Makefile
@@ -52,13 +52,13 @@ test: lint test-only
|
||||
test-cov: clean
|
||||
# rebuild with test
|
||||
rm -rf packages/*/lib
|
||||
BABEL_ENV=test; ./node_modules/.bin/gulp build
|
||||
BABEL_ENV=test ./node_modules/.bin/gulp build
|
||||
./scripts/test-cov.sh
|
||||
|
||||
test-ci:
|
||||
NODE_ENV=test make bootstrap
|
||||
./scripts/test-cov.sh
|
||||
cat ./coverage/coverage.json | ./node_modules/codecov.io/bin/codecov.io.js
|
||||
make test-cov
|
||||
./node_modules/.bin/codecov -f coverage/coverage-final.json
|
||||
|
||||
publish:
|
||||
git pull --rebase
|
||||
|
||||
Reference in New Issue
Block a user