How to gather Jacoco coverage information in xml file?

23 Views Asked by At

I used following command to gather coverage information in xml file -

java -javaagent:/home/user/jacoco-0.8.6/lib/jacocoagent.jar=destfile=/home/oracle/jacoco-coverage.xml,append=false,includes=com.myapp.* -jar myapplication.jar

This generates jacoco-coverage.xml file but it has contents like following everywhere -

ÀÀ #

and now when I publish it to Sonar it shows code-coverage as 0 % even though xml file has non-zero size which indicates code was hit.

Looks xml file is not generated correctly. Could you please help to generate correct xml file with coverage information?

0

There are 0 best solutions below