Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check code coverage delta in gitlab?

Is there a way to check code coverage delta of gradle multiproject using JaCoCo on every merge request in GitLab CE and fail the pipeline if coverage level decreases?

like image 507
Nolequen Avatar asked May 09 '26 10:05

Nolequen


1 Answers

GitLab has Code Quality support built-in via Code Climate. If you run the code quality tests on both the target (usually master) and source branches then GitLab will display code quality degradation on the merge request.

See https://docs.gitlab.com/ee/user/project/merge_requests/code_quality.html for an animated GIF of the feature plus more information. Further, you can find examples on how to set up a code quality job at https://docs.gitlab.com/ee/ci/examples/code_quality.html.

like image 155
Drew Blessing Avatar answered May 10 '26 22:05

Drew Blessing