[英]IntelliJ IDEA Testing - How to display branch coverage
In Eclipse with jacoco, I can get branch coverage percentage.在带有 jacoco 的 Eclipse 中,我可以获得分支覆盖率。
But in IntelliJ IDEA, I can only get lines&method coverage percentage in coverage window.但是在 IntelliJ IDEA 中,我只能得到覆盖 window 中的行和方法覆盖百分比。
How to summarize branch coverage in IntelliJ IDEA?如何总结 IntelliJ IDEA 中的分支覆盖率?
First, by default intellij not showing the branch coverage inside Coverage
window.首先,默认情况下,intellij不显示Coverage
window 内的分支覆盖率。
Personally, I think it is better to show it by default.个人觉得还是默认显示比较好。
So if you are interested in "branch coverage", you need to activate its config Use tracing
.所以如果你对“分支覆盖”感兴趣,你需要激活它的 config Use tracing
。
You have 2 options:您有 2 个选项:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.