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.
精彩评论