I have a jacoco agent that is attached to a webservice. I executed my automation test cases and extracted the jacoco-client.exec from the webservice using the ExecutionDataClient. Now I am trying to generate a jacoco report for the webservice using the jacoco-client.exec file.
I am using the below command to generate the report.
java -jar jacococli.jar report jacoco-client.exec --classfiles rest-service2-0.0.1-SNAPSHOT.jar --html report
The webservice code repo is present as a separate repo and it is not a part of the automation code repo. So I cannot provide the classfiles path directly in the above command. So instead i am providing the application jar.
The issue is, jacoco is generating the code coverage report for all the maven dependencies in the jar along with the original code. But I need the code coverage for the application code alone and not the dependencies code. I am entirely new to using jacoco and don't know how to proceed further. Can someone please help me with this please.
--
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 jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/a5b38573-b603-409d-a090-4731bed6e35an%40googlegroups.com.
<Screenshot 2020-11-24 at 8.29.20 PM.png>