Clover check rounds percentages thus when the build should fail when less than 100% coverage, a coverage of 99.5% will pass

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • 2.4
    • Affects Version/s: None
    • Component/s: Ant Tasks
    • None

      Produced from case https://support.atlassian.com/browse/CLV-4929.

      If you have the following:

       <target name="check.coverage" depends="with.clover">
          <clover-check haltonfailure="true">
              <package name="com.acme.killerapp.core" target="100%"/>
              <package name="com.acme.killerapp.ai" target="100%"/>
          </clover-check>
        </target>
      

      Then even if com.acme.killerapp.ai has a coverage of 99.5% it will Pass.

      Log Message

      [clover-check] New coverage = 100%; Old coverage = 100%
      [clover-check] New coverage = 99,5%; Old coverage = 100%
      [clover-check] Coverage check PASSED
      

            Assignee:
            BrendanA
            Reporter:
            Partha
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: