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?