Hello everyone,
I’m looking for a way to prevent the overal code coverage to be lower after a merge.
Issue:
We have a setting that our overal code coverage should be at least 80%. Some projects however do not yet meet this expectation and our below this percentage.
New code should also be at least 80% covered.
We have the issue however that some developers sometimes accidentally push a focused test on their branch. All other tests are than skipped. With fdescribe/ fit for example.
The PR does not fail on this, because the new code may be perfectly tested. But the coverage after merge is than drastically decreased
.
Solution?
I would really like some option in the quality gate to prevent the code coverage from being lower after merge.
Or is there some other way to prevent this from happening?