Unable to get Jacoco to work with Powermockito using offline instrumentation
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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 me proper unit test coverage for classes that use PowerMockito. I've setup my pom as below but I still get zero % coverage on my test class. Any help much appreciated as it's driving me slowly bonkers! 4.0.0 mandy jacoco-test war 1.0-SNAPSHOT jacoco-test Maven Webapp http://maven.apache.org 1.5.4 0.7.1.201405082137 org.jacoco org.jacoco.agent runtime ${jacoco.version} test