作者:手机用户2602906645 | 来源:互联网 | 2023-05-18 15:19
AsdiscussedinOpenJaCoCoreportinIntellijIDEA,whenIgathercodecoveragestatisticsusingJa
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.
正如在Intellij IDEA中的Open JaCoCo报告中所讨论的,当我使用Jacoco(而不是本机IntelliJ跟踪)收集代码覆盖率统计时,0.0%(即“无”覆盖率)始终显示在覆盖窗口中。
This is after I have done the whole "Analyze -> Show coverage data..." and selected my generated "jacoco.exec" file.
这是在我完成整个“分析 - >显示覆盖数据...”并选择了我生成的“jacoco.exec”文件之后。
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.
相同的“jacoco.exec”文件可以与其他工具(如Jacoco本机报告生成任务)和Sonar一起使用,这些工具可以生成预期的覆盖率报告内容。
Also native IntelliJ instrumentation works fine.
原生IntelliJ仪器也可以正常工作。
Can anybody advise me if there is some essential step I must perform to get IntelliJ to accept my Jacoco coverage?
任何人都可以告诉我,为了让IntelliJ接受我的Jacoco报道,我必须采取哪些必要步骤吗?
2 个解决方案