【发布时间】:2019-11-25 08:46:57
【问题描述】:
我的整体覆盖率已达到阈值,但构建仍被标记为不稳定。有人知道这是什么原因吗?
16:53:04 [JaCoCo plugin] Thresholds: JacocoHealthReportThresholds [minClass=75, maxClass=99, minMethod=75, maxMethod=99, minLine=75, maxLine=99, minBranch=40, maxBranch=99, minInstruction=65, maxInstruction=99, minComplexity=0, maxComplexity=99]
16:53:04 [JaCoCo plugin] Publishing the results..
16:53:04 [JaCoCo plugin] Loading packages..
16:53:04 [JaCoCo plugin] Done.
16:53:04 [JaCoCo plugin] Overall coverage: class: 89, method: 89, line: 77, branch: 41, instruction: 67
16:53:04 [JaCoCo plugin] Health thresholds: JacocoHealthReportThresholds [minClass=75, maxClass=99, minMethod=75, maxMethod=99, minLine=75, maxLine=99, minBranch=40, maxBranch=99, minInstruction=65, maxInstruction=99, minComplexity=0, maxComplexity=99]
16:53:04 [JaCoCo plugin] Apply Min/Max thresholds result: UNSTABLE
【问题讨论】:
-
复杂性缺失。编辑:啊,它在报告中。很有趣。
-
是的,它在报告中,这就是原因,我觉得它很奇怪。
标签: jenkins jenkins-pipeline jenkins-plugins jacoco jacoco-maven-plugin