Skip to content

Commit cf3339f

Browse files
authored
Merge pull request #4 from brunolm/coverage-thresholds
Add minimun % code coverage
2 parents ea8d3d6 + 90954da commit cf3339f

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ Each Pull Request will contain explanation and steps taken to complete a feature
1111
## Testing
1212

1313
- [Add project on Travis CI](https://github.com/brunolm/angular-how-to/pull/2)
14-
- [Add code coverage and coveralls integration](https://github.com/brunolm/angular-how-to/pull/3)
14+
- [Add code coverage and coveralls integration](https://github.com/brunolm/angular-how-to/pull/3)
15+
- [Add code coverage thresholds](https://github.com/brunolm/angular-how-to/pull/4)

karma.conf.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,13 @@ module.exports = function (config) {
1717
},
1818
coverageIstanbulReporter: {
1919
reports: [ 'html', 'lcovonly' ],
20-
fixWebpackSourcePaths: true
20+
fixWebpackSourcePaths: true,
21+
thresholds: {
22+
statements: 90,
23+
lines: 90,
24+
branches: 90,
25+
functions: 90
26+
}
2127
},
2228
angularCli: {
2329
environment: 'dev'

0 commit comments

Comments
 (0)