Hi Guys,
I see 0% code coverage from the ".exec" file generated through jacocoagent.jar. Below is the command which I set during server startup.
-javaagent:<windows_path>/lib/jacocoagent.jar=destfile=<windows_path>/Jacoco_client.exec,append=true,includes=*,output=tcpserver,address=localhost,port=6300
I got the ".exec" file using ExecutionDataClient.java as a client.
The size of the ".exec" is showing around 600KB and I can also see the class file information inside the executable file.
When I upload the integration test execution file to eclipse mapping respective java sources, coverage shows 0%.
Same is the case when I upload it directly to Sonarqube using below properites in Jenkins.
sonar.projectKey=TEST_Jacoco
sonar.projectName=TEST_Jacoco
sonar.projectVersion=1.0
sonar.jacoco.reportPaths=<project_build>\\Jacoco_1015.exec
sonar.java.binaries=<project_build>\\Classes
sonar.language=java
Can you please let me know how to use the view code coverage from ".exec" file generated by jacocoagent ???