Enabling cobertura

Hey there!

I’m also confronted with not seeing any visual indication of coverage (produced by jest) in Merge Request Diffs. The file is properly uploaded as artifacts:reports:junit and Feature.enable(:coverage_report_view) has been executed in the rails console.

In my case the root of the covered files is the repository itself (not a sub-directory like src). I’ve tried patching the cobertura xml to no avail:

<source></source>
<source>.</source>
<source>./</source>

and

<class name="App.tsx" filename="./App.tsx" line-rate="0.6315999999999999" branch-rate="0.5832999999999999">
<class name="App.tsx" filename="App.tsx" line-rate="0.6315999999999999" branch-rate="0.5832999999999999">

any ideas?

1 Like