Enable code coverage

This commit is contained in:
Alex Kuzmenko 2017-03-10 13:01:21 +02:00 committed by Brian Ng
parent ded253f1ad
commit 4cf4ac6cbb
4 changed files with 589 additions and 21 deletions

View File

@ -1,6 +1,8 @@
node_modules node_modules
coverage
lib lib
test/tmp test/tmp
.DS_Store .DS_Store
*.log *.log
.vscode .vscode
.nyc_output

View File

@ -0,0 +1,4 @@
coverage:
parsers:
javascript:
enable_partials: yes

View File

@ -13,7 +13,8 @@
"dev": "babel -w src -d lib", "dev": "babel -w src -d lib",
"lint": "eslint .", "lint": "eslint .",
"fix": "eslint . --fix", "fix": "eslint . --fix",
"ci": "npm run test", "cov": "nyc npm run test",
"ci": "nyc npm run test && nyc report --reporter=json && codecov -f coverage/coverage-final.json",
"changelog": "git log `git describe --tags --abbrev=0`..HEAD --pretty=format:' * %s (%an)' | grep -v 'Merge pull request'", "changelog": "git log `git describe --tags --abbrev=0`..HEAD --pretty=format:' * %s (%an)' | grep -v 'Merge pull request'",
"test": "npm run build && mocha ./test --compilers js:babel-register -t 10000" "test": "npm run build && mocha ./test --compilers js:babel-register -t 10000"
}, },
@ -58,6 +59,7 @@
"babel-preset-es2015": "^6.14.0", "babel-preset-es2015": "^6.14.0",
"babel-register": "^6.14.0", "babel-register": "^6.14.0",
"chai": "^3.0.0", "chai": "^3.0.0",
"codecov": "^1.0.1",
"compat-table": "kangax/compat-table#c38f039b8ea7fadf347d3e300fec3611645e31e9", "compat-table": "kangax/compat-table#c38f039b8ea7fadf347d3e300fec3611645e31e9",
"eslint": "^3.13.1", "eslint": "^3.13.1",
"eslint-config-babel": "^5.0.0", "eslint-config-babel": "^5.0.0",
@ -65,6 +67,7 @@
"fs-extra": "^2.0.0", "fs-extra": "^2.0.0",
"lodash": "^4.15.0", "lodash": "^4.15.0",
"mocha": "^3.0.2", "mocha": "^3.0.2",
"nyc": "^10.1.2",
"rimraf": "^2.5.4" "rimraf": "^2.5.4"
}, },
"babel": { "babel": {

File diff suppressed because it is too large Load Diff