Hi team,
When I’m trying to run the maven project using jacoco plugin to check the code coverage results I am facing huge issue.
When I am trying to run in my local environment using jacoco few test cases aren’t showing coverage results and getting the below error.
[INFO] — jacoco-maven-plugin:0.7.6.201602180812:report (post-unit-test) @ kcam —
[INFO] Analyzed bundle ‘KCAM :: 1.1.1-SNAPSHOT’ with 79 classes
[WARNING] Classes in bundle ‘KCAM :: 1.1.1-SNAPSHOT’ do no match with execution data. For report generation the same class files must be used as at runtime.
[WARNING] Execution data for class XXXXXXXX does not match.
[WARNING] Execution data for class XXXXXXXX does not match.
[WARNING] Execution data for class XXXXXXXX does not match.
[WARNING] Execution data for class XXXXXXXX does not match.[
Here is the jacoco related plugin details in my pom.xml
I Googled the error message that’s repeated & got this SO answer. Which led me to this one about the first error in your log. It seems that something changes during your build/test/analyze process.