Show zero based coverage for jobs
What does this MR do and why?
Jobs without coverage setup return null
| Jobs with zero coverage return 0
. We do not differentiate between these in the UI, which could cause some confusion if a job had zero coverage vs a job that was not setup with coverage. This MR shows zero based coverage on the jobs list and job summary.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Job summary
Before | After |
---|---|
Job list
Before | After |
---|---|
How to set up and validate locally
- Setup jobs with coverage, with zero based coverage and without coverage.
- View those jobs on jobs list and job summary
Example job
coverage_job_zero:
stage: test
script: echo "0"
coverage: '/^0$/'
Related to #237931 (closed)
Edited by Payton Burdette