问题
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