Skip to content

Commit

Permalink
Merge pull request #4 from brunolm/coverage-thresholds
Browse files Browse the repository at this point in the history
Add minimun % code coverage
  • Loading branch information
brunolm authored Oct 27, 2017
2 parents ea8d3d6 + 90954da commit cf3339f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ Each Pull Request will contain explanation and steps taken to complete a feature
## Testing

- [Add project on Travis CI](https://github.com/brunolm/angular-how-to/pull/2)
- [Add code coverage and coveralls integration](https://github.com/brunolm/angular-how-to/pull/3)
- [Add code coverage and coveralls integration](https://github.com/brunolm/angular-how-to/pull/3)
- [Add code coverage thresholds](https://github.com/brunolm/angular-how-to/pull/4)
8 changes: 7 additions & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ module.exports = function (config) {
},
coverageIstanbulReporter: {
reports: [ 'html', 'lcovonly' ],
fixWebpackSourcePaths: true
fixWebpackSourcePaths: true,
thresholds: {
statements: 90,
lines: 90,
branches: 90,
functions: 90
}
},
angularCli: {
environment: 'dev'
Expand Down

0 comments on commit cf3339f

Please sign in to comment.