diff --git a/README.md b/README.md index a8d5a87..d102cbd 100644 --- a/README.md +++ b/README.md @@ -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) \ No newline at end of file +- [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) \ No newline at end of file diff --git a/karma.conf.js b/karma.conf.js index af139fa..508663f 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -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'