Coverage visualization not displayed until the cobertura file is opened
Summary
I can't see the coverage visualization in MR unless I open the cobertura-coverage.xml
file in the job artifact.
Steps to reproduce
- Open a MR with some code changes
- Let the pipeline run
- Check the changes, no inline coverage visualization
- Open
cobertura-coverage.xml
in the artifact of the test job - Go back to the MR changes and inline coverage visualization is there
Example Project
I followed the doc to make sure that everything was setup correctly and I can see that the file has been found and uploaded as an artifact in the logs.
I had the same behavior in both edge and chrome.
@klaasdellschaft created an example repo here: https://gitlab.com/klaasdellschaft/inlince-code-coverage/-/merge_requests/1
What is the current bug behavior?
Code coverage visualization in MR is not displayed unless the cobertura-coverage.xml
file in the job artifact was opened.
What is the expected correct behavior?
Code coverage visualization in MR should be displayed once the test job ran.
Relevant logs and/or screenshots
I can see in the job's log that the cobertura-coverage.xml
file has been uploaded as an artifact:
Uploading artifacts as "cobertura" to coordinator... ok id=1557118017 responseStatus=201 Created token=DmY-c3so
Check this comment for more details found by @klaasdellschaft
Results of GitLab environment info
@u117959 could give you more info about the Gitlab environment if needed.