Cobertura & Java 7 support

北城以北 提交于 2019-11-28 22:37:40

Cobertura 2.0.3 supports Java 7, the cobertura-maven-plugin version 2.6 which uses this version has been just released

T.K.

I was able to get it to work by adding the following argument:

-XX:-UseSplitVerifier

I got it from here.

I think the answer is: it won't. There is discussion on the mailing list that the project is not being maintained, and there are Java 7 bugs that have been open for a year. On the bright side, JaCoCo functionality is comparable and is being actively maintained.

Further to Jagger's comment, it looks like this is now being actively worked on for the next release - see:

https://github.com/cobertura/cobertura/commit/b303fdc94851088a3c8699651770faef33180924

with the comment "Fix java 7 stack map issue".

Old thread, but my answer may be useful: Cobertura does support the latest Java versions and is actively maintained. eCobertura (the Eclipse plug-in for Cobertura) hasn't been maintained since 2010, but Cobertura itself is still maintained.

eCobertura will not run with Java 7 or higher, but Cobertura will.

If you are looking for coverage reports (suc h as the ones that eCobertura used to provide), just run the Cobertura maven plugin with mvn cobertura:cobertura and check the HTML report under target/site/cobertura/index.html

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