Open source code coverage libraries for JDK7?

前提是你 提交于 2020-01-14 22:46:40

问题


It seems like both Cobertura and Emma are outdated now. They don't cope with Java 7 byte code. Running instrumented tests with Cobertura results in verification errors

java.lang.VerifyError: Expecting a stackmap frame at branch target 41 in method .....

A shame really because Cobertura really is cool and well-supported. For Java 6 byte code that is. But now I'm looking for a replacement. Preferably having both Maven and Jenkins support.

Are there any people in here using a code coverage library for Java 7 byte code ?


回答1:


I believe Jacoco will do the job



来源:https://stackoverflow.com/questions/11523058/open-source-code-coverage-libraries-for-jdk7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!