Navigation Menu

Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
[BUILD] add code coverage reporter and thresholds
Browse files Browse the repository at this point in the history
Signed-off-by: Cory Rylan <crylan@vmware.com>
  • Loading branch information
Cory Rylan authored and coryrylan committed Jul 3, 2019
1 parent 41a43bd commit cd8db76
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions karma.conf.js
Expand Up @@ -97,6 +97,12 @@ module.exports = function(karma) {
dir: './reports/coverage/',
fixWebpackSourcePaths: true,
reports: ['html', 'lcovonly', 'cobertura'],
thresholds: {
statements: 90,
lines: 90,
branches: 80, // goal to increase this to 90%
functions: 90,
},
},
browsers: [
// ChromeHeadless is the default, but you can toggle this list in dev. Always reset back to just ChromeHeadless.
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -42,8 +42,8 @@
"test:visual:dark": "./scripts/docker-cdc.js -t -c dark",
"test:a11y": "node scripts/axe",
"test:golden": "diff -u golden/clr-angular.d.ts dist/golden/clr-angular.d.ts",
"test": "ng test clr-angular --watch false",
"test:watch": "ng test clr-angular --watch",
"test": "ng test clr-angular --watch false --code-coverage",
"test:watch": "ng test clr-angular --watch --code-coverage",
"test:travis": "npm-run-all test:format test:lint test build build:ks build:dev test:golden",
"format:fix": "pretty-quick --staged",
"license:fix": "node scripts/update-license",
Expand Down

0 comments on commit cd8db76

Please sign in to comment.