Skip to content

Commit

Permalink
Ensure that karma test coverage will not fall below current coverage
Browse files Browse the repository at this point in the history
[Issue] #1278
[Problem] Test coverage may decrease when adding new code
[Solution] Ensure that Karma fails when lines coverage is dropping below current one.
This should cause CI to fail too.
Current coverage is 53.96

Signed-off-by: Lukasz Slachciak <l.slachciak@samsung.com>
  • Loading branch information
lmslachciak committed Jul 9, 2020
1 parent 43c6b02 commit dea6867
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/karma/all.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ module.exports = function (config) {
{ type: "clover", subdir: "clover" },
{ type: "lcov", subdir: "lcov" },
{ type: "text"}
]
],
check: {
global: {
lines: 53.96
}
}
},

// the default configuration
Expand Down

0 comments on commit dea6867

Please sign in to comment.