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:
Benjamin E. Coe
2016-11-28 11:17:52 -08:00
committed by Henry Zhu
parent f98d824ae7
commit db67d7fdce
6 changed files with 32 additions and 20 deletions

View File

@@ -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