[英]How to configure Intellij code coverage for jar in library
I am attempting to generate code coverage for a jar that is in my library.我正在尝试为我的库中的 jar 生成代码覆盖率。 I have a suite of tests that uses this jar and I would like to see how much coverage I am getting with my test suite.
我有一套使用这个 jar 的测试,我想看看我的测试套件有多少覆盖率。 In Intellij's run/configuration menu, even if I manually specify to include all the classes in the jar, ex.
在 Intellij 的运行/配置菜单中,即使我手动指定包含 jar 中的所有类,例如。 "com.my.jar.*", I get 0% code coverage.
“com.my.jar.*”,我得到 0% 的代码覆盖率。 In Eclipse, I was able to easily select the jar, hit 'Coverage', and get accurate results.
在 Eclipse 中,我能够轻松地 select 和 jar,点击“覆盖”,并获得准确的结果。 Has anyone else converting to Intellij from Eclipse experienced the same issue?
有没有其他人从 Eclipse 转换到 Intellij 遇到同样的问题?
I got stuck on this too - I was able to get it working in Eclipse instead of Idea我也被困在这个问题上 - 我能够让它在 Eclipse 而不是 Idea 中工作
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.