Implement public API coverage

This patch:
- implements a basic public API coverage based on 'helper.tracePublicAPI' methods
- adds `npm run coverage` command which reports coverage after running all of the unit tests

References #50.
This commit is contained in:
JoelEinbinder
2017-07-27 16:16:37 -07:00
committed by Andrey Lushnikov
parent c26d2c8271
commit a2e0d27fb6
3 changed files with 44 additions and 4 deletions

View File

@@ -11,10 +11,11 @@
"debug-unit": "DEBUG_TEST=true node --inspect-brk ./node_modules/.bin/jasmine test/test.js",
"test-phantom": "python third_party/phantomjs/test/run-tests.py",
"test-doclint": "jasmine utils/doclint/test/test.js",
"test": "npm run lint --silent && npm run unit && npm run test-phantom && npm run test-doclint",
"test": "npm run lint --silent && npm run coverage && npm run test-phantom && npm run test-doclint",
"install": "node install.js",
"lint": "([ \"$CI\" = true ] && eslint --quiet -f codeframe . || eslint .) && npm run doc",
"doc": "node utils/doclint/cli.js"
"doc": "node utils/doclint/cli.js",
"coverage": "COVERAGE=true npm run unit"
},
"author": "The Chromium Authors",
"license": "SEE LICENSE IN LICENSE",