JDK7的开源代码覆盖库? [英] Open source code coverage libraries for JDK7?

查看:89
本文介绍了JDK7的开源代码覆盖库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在看来Cobertura和Emma都已经过时了。他们不适应Java 7字节代码。使用Cobertura运行检测测试会导致验证错误

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 .....

真可惜,因为Cobertura确实很酷并且得到了很好的支持。对于Java 6字节代码。但是现在我正在寻找替代品。最好同时拥有Maven和Jenkins的支持。

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.

这里有没有人使用Java 7字节代码的代码覆盖库?

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

推荐答案

我相信 Jacoco 可以胜任

这篇关于JDK7的开源代码覆盖库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆