I am getting below issue while running code coverage.
Classes in bundle 'OverAll' do no match with execution data. For report generation the same class files must be used as at runtime.
[jacoco:report] Execution data for class com/**/**/** does not match.
Steps followed to generate jacoco report:
-------------------------------------------------
1. I am using Serenity Rest & cucumber automation framework to run the test cases.
2. To generate code coverage report, I am passing some JVM argument config in a server as follows
JVM_ARGS="$JVM_ARGS -javaagent:/com/test/jacocoagent.jar=destfile=/com/test/jacoco/jacoco_test.exec"
3. At the end of the test, some jacoco_test.exec will be generated and I used that to extract the code coverage report using Jacoco-Jenkins plugin setup.
Getting some amount of line of coverage but with above issue.
I got to know that its because of different java or compiler version issue and some offline instrumentation technique we have but not sure how to configure that.
I am using ant build configuration for the jacoco.
Request to kindly help me to resolve the issue. Thanks in Advance.