Code coverage for merge requests with GitLab and Devel::Cover

by Nicholas Clark (London.pm)

Code coverage for merge requests with GitLab and Devel::Cover aimed at Any and is held in English. This talk starts on 2024-04-16 at 11:20 for 40 minutes. It takes place at the Room 1.

GitLab can show code coverage as part of the Merge Request interface:

https://docs.gitlab.com/ee/ci/testing/test_coverage_visualization.html

We have this working at work - how did we get there, and what did we learn along the way?

The first part of the talk is an overview of code coverage with Devel::Cover:
* How easy it is to get a report of coverage
* Subroutine, statement, branch and condition coverage
* When to stop

The second part is getting from file:/// to GitLab
* Generating Cobertura format XML
* Getting GitLab CI to upload this correctly
* Faking Devel::Cover data for empty files
* Publishing the full Devel::Cover reports with Gitlab Pages
* Trying to do this locally without GitLab

Bonus slides - anything else we get working in the next 3 weeks


Tags: coverage testing

Interest in attending: