Jan Goyvaerts
Jan Goyvaerts

Reputation: 3023

Open source code coverage libraries for JDK7?

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 ?

Upvotes: 3

Views: 1162

Answers (1)

dty
dty

Reputation: 18998

I believe Jacoco will do the job

Upvotes: 2

Related Questions