Skip to content

Commit 7c9017f

Browse files
chore(testing): update karma code coverage config (#36)
* fix(testing): update karma code coverage config - it was broken in one of the angular major version updates earlier this year * chore: update codecov threshold We don't care too much about coverage at the moment, so only fail if it drops more than 5%
1 parent 1e6e3ca commit 7c9017f

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

codecov.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
coverage:
22
status:
33
patch: off
4+
project:
5+
default:
6+
threshold: 5%

karma.conf.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,16 @@ module.exports = function (config) {
1515
client: {
1616
clearContext: false, // leave Jasmine Spec Runner output visible in browser
1717
},
18-
coverageIstanbulReporter: {
18+
coverageReporter: {
1919
dir: require("path").join(__dirname, "./coverage/angular-rpg"),
20-
reports: ["html", "lcovonly", "text-summary"],
20+
reporters: [
21+
{ type: "html", subdir: "report-html" },
22+
{ type: "lcov", subdir: "report-lcov" },
23+
{ type: "text-summary" },
24+
],
2125
fixWebpackSourcePaths: true,
2226
},
23-
reporters: ["progress", "kjhtml"],
27+
reporters: ["progress", "kjhtml", "coverage"],
2428
port: 9876,
2529
colors: true,
2630
logLevel: config.LOG_INFO,

0 commit comments

Comments
 (0)