I’m using Jacoco & the script from https://raw.githubusercontent.com/rix0rrr/cover2cover/master/cover2cover.py to convert the Jacoco output to Cobertura’s format.
The code is at the backed sub-folder, so I have the following sed script to patch the path in the cobertura file:
# working dir: backend - python2 /bin/cover2cover.py target/site/jacoco/jacoco.xml src/main/java > ../cobertura.xml - sed -i 's;<source>src/main/;<source>backend/src/main/;' ../cobertura.xml
The job log says:
Uploading artifacts for successful job 00:03 Uploading artifacts... cobertura.xml: found 1 matching files and directories Uploading artifacts as "cobertura" to coordinator... 201 Created id=146 responseStatus=201 Created token=xxxxx Cleaning up project directory and file based variables
I’ve downloaded the cobertura artifact and the paths look good:
<sources><source>backend/src/main/java</source></sources><packages> ... <classes><class branch-rate="0.0" complexity="11.0" filename="pt/ulisboa/tecnico/socialsoftware/tutor/answer/AnswerController.java" line-rate="0.0" name="pt.ulisboa.tecnico.socialsoftware.tutor.answer.AnswerController"> ...
backend/src/main/java/pt/ulisboa/tecnico/socialsoftware/tutor/answer/AnswerController.java exists in the tree.
However, I don’t get any coverage information in the merge requests. I’ve tried peeking through the browser’s dev tools to check for the coverage json file as suggested in other threads, but it’s not downloaded at all.
Could someone suggest how to debug this issue? We have Gitlab EE 15.5.3.