如何从 JaCoCo 获取未执行的课程?

huangapple 未分类评论52阅读模式
英文:

How do I get missed classes from JaCoCo?

问题

我有一个混合的Java/Kotlin项目,在构建失败后报告显示:

加载执行数据文件 jacoco.exec
分析包 'xxx-api',含有 884 个类
[警告] 对于包 xxx-api,违反了规则:丢失的类数量为 36,但预期的最大值为 35

这是我的本地构建,而且在Jenkins中也失败了(出现相同的错误),所以我需要在本地解决这个问题(我的意思是,不能更改环境或 pom.xml),所以我想知道有没有办法知道哪些类是丢失的。

这是报告的一部分:

如何从 JaCoCo 获取未执行的课程?

这是底部显示的内容:

如何从 JaCoCo 获取未执行的课程?

所以,“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:

如何从 JaCoCo 获取未执行的课程?

And this is what appears in the bottom:

如何从 JaCoCo 获取未执行的课程?

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?

huangapple
  • 本文由 发表于 2020年4月5日 01:08:29
  • 转载请务必保留本文链接:https://java.coder-hub.com/61031744.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定