Closed mgonzcast closed 1 year ago
I answer myself, you need to set to format srclevel to true:
<clover-report>
<current outfile="clover.xml" title="Coverage">
<format srclevel="false" type="xml"/>
<testsources dir="src/test" includes="/**/*.java"/>
<testresults dir="target/surefire-reports" includes="TEST-*.xml"/>
</current>
</clover-report>
I am using 8.9.8 Sonarqube LTS and maven 3.8.4 and Java 1.8.x
I have this issue with some of my tests so I am forced to use a custom report like this one:
If use directly in pom.xml with:
It gets integrated into Sonarqube but report several tests failing (because of the @Rule issue mentioned before).
Unfortunately the resulting clover.xml file is not integrated into Sonarqube reporting 0 lines to cover. Any way to achieve this?