英文:
How do I get missed classes from JaCoCo?
问题
我有一个混合的Java/Kotlin项目,在构建失败后报告显示:
加载执行数据文件 jacoco.exec
分析包 'xxx-api',含有 884 个类
[警告] 对于包 xxx-api,违反了规则:丢失的类数量为 36,但预期的最大值为 35
这是我的本地构建,而且在Jenkins中也失败了(出现相同的错误),所以我需要在本地解决这个问题(我的意思是,不能更改环境或 pom.xml),所以我想知道有没有办法知道哪些类是丢失的。
这是报告的一部分:
这是底部显示的内容:
所以,“36个丢失的类”不是丢失列的总和,我不知道如何知道哪些类是丢失的。
有没有办法知道呢?
英文:
I have a mixed Java/Kotlin project, and after a failed build the report says:
Loading execution data file jacoco.exec
Analyzed bundle 'xxx-api' with 884 classes
[WARNING] Rule violated for bundle xxx-api: classes missed count is 36, but expected maximum is 35
This is my local build, and it fails in Jenkins too (with the same error), so I need to solve this locally (I mean, I can't change nothing about the environment nor the pom.xml), so I was wondering if there's a way to know what are the missed classes.
This is a part of the report:
And this is what appears in the bottom:
So, the "36 missed classes" aren't the sum of the missed column, and I don't get how to know what are the missed classes.
Is it any way to know it?
专注分享java语言的经验与见解,让所有开发者获益!
评论