On Wednesday, October 16, 2019 at 2:01:36 AM UTC+2, [email protected] 
wrote:
>
> 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 ???
>
>
This has been answered enormous amount of times, please use search - 
generation of report from exec file requires exact same class files as were 
used during execution.

Different compilers produce different class files - in case of Eclipse 
class files in IDE are compiled by Eclipse Compiler, and likely you use 
javac during build of you application.

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/c1f17e17-d383-4b22-8b7e-321c74e6dc98%40googlegroups.com.

Reply via email to