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

von Nicholas Clark (London.pm)

Code coverage for merge requests with GitLab and Devel::Cover richtet sich an Alle und wird in English gehalten. Der Talk beginnt am 16.04.2024 um 11:20 Uhr und dauert 40 Minuten. Er findet im Raum 1 statt.

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

Teilnahmeinteresse: