Given that Jacoco doesn\'t play nicely with PowerMockito when instrumenting \"on the fly\", I\'ve been trying to configure offline instrumentation in the hope this will give
Use below maven plugin code snippet this works fine in jenkins as well as in local and shows full code coverage for PowermockRunner unit tests
org.jacoco
jacoco-maven-plugin
${jacoco-maven-plugin.version}
pre-test
prepare-agent
true
pre-integ-test
prepare-agent-integration
true
jacoco-instrument
instrument
jacoco-restore-instrumented-classes
restore-instrumented-classes
*