开发者

How to make Jenkins ignore "% Conditionals" in the "Coverage Metric Targets" (W column)

开发者 https://www.devze.com 2023-03-08 08:04 出处:网络
The \"W\" column on the Jenkins dashboard shows stormy for all of my PHP projects due to the contributing line

The "W" column on the Jenkins dashboard shows stormy for all of my PHP projects due to the contributing line

Clover Coverage: Conditionals 0% (0/0)

because PHP_CodeCoverage doesn't measure conditionals. How can I make Jenkins ignor开发者_Python百科e this measurement for these projects? I have tried setting <conditionalCoverage> to 0 and -1 with no effect (yes, I remembered to reload the configuration).

<hudson.plugins.clover.CloverPublisher>
  <cloverReportDir>build/logs</cloverReportDir>
  <cloverReportFileName>clover.xml</cloverReportFileName>
  <healthyTarget>
    <methodCoverage>70</methodCoverage>
    <conditionalCoverage>-1</conditionalCoverage>    <!-- tried 0 too -->
    <statementCoverage>80</statementCoverage>
  </healthyTarget>
  <unhealthyTarget/>
  <failingTarget/>
</hudson.plugins.clover.CloverPublisher>


Using -1 does work, but you have to rebuild each project. The entries in the summary hover are generated as part of the build and do not change.

0

精彩评论

暂无评论...
验证码 换一张
取 消