使用Jacoco时,Coverage视图在Intellij中显示0.0% [英] Coverage view shows 0.0% in Intellij when using Jacoco

查看:1516
本文介绍了使用Jacoco时,Coverage视图在Intellij中显示0.0%的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如





这是我所有的建议,伙计


As discussed in Open JaCoCo report in Intellij IDEA, when I gather code coverage statistics using Jacoco (rather than native IntelliJ tracing) 0.0% (i.e. "no" coverage) is always shown in the coverage window.

This is after I have done the whole "Analyze -> Show coverage data..." and selected my generated "jacoco.exec" file.

The same "jacoco.exec" file works fine with other tools such as the Jacoco native report generation task, and with Sonar, and these produce the expected coverage report content.

Also native IntelliJ instrumentation works fine.

Can anybody advise me if there is some essential step I must perform to get IntelliJ to accept my Jacoco coverage?

解决方案

I may guess you are trying to see test coverage in same way as it is show by the TeamCity(jaCoCo). If Yes there are simple workaround how to check all missed branches(just general statistic which branches was visited and how many times) :

That's all my advices , folks

这篇关于使用Jacoco时,Coverage视图在Intellij中显示0.0%的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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