在Intellij IDEA中打开JaCoCo报告 [英] Open JaCoCo report in Intellij IDEA

查看:560
本文介绍了在Intellij IDEA中打开JaCoCo报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过使用代码覆盖工具(而不是静态代码分析工具)在我们的应用程序中找到死代码。我已经选择了JaCoCo并且能够通过JaCoCo代理获得报告。

I am trying to find dead code on our application by using a code coverage tool (rather a static code analysis tool). I have chosen JaCoCo and am able to get a report thanks to the JaCoCo agent.

我知道Intellij IDEA与JaCoCo合作但我无论如何都无法导入我的JaCoCo向Intellij IDEA报告。
关于如何做的任何想法?

I know that Intellij IDEA works with JaCoCo but I couldn't find anyway to import my JaCoCo report into Intellij IDEA. Any idea on how to do that?

谢谢

推荐答案

找到解决方案。
我已经安装了coverage插件和EclEmma插件(不确定这个是否真的有必要......)。
然后分析 - >显示覆盖率数据...并选择您的Jacoco输出文件。此文件具有.exec扩展名,否则您无法选择它。这是我的问题...

Found the solution. I have installed the coverage plugin and the EclEmma plugin (not sure if this one is really necessary...). Then "Analyse -> Show Coverage Data..." and pick your Jacoco output file. This file HAS to have the .exec extension, otherwise you can't select it. That was my problem...

谢谢

这篇关于在Intellij IDEA中打开JaCoCo报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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