#20 Add failure condition on reports

Current Release
closed
5
2014-08-15
2004-02-21
No

The GroboUtils CodeCoverage Ant tool should support the
ability to fail the build if certain criteria for
minimal coverage are not met.

Initially, this would be a simple measure of whether
the total percentage is at least X (specified in the
build).

This should be expanded upon to include multiple
conditions. The format would be, inside the report:
<failon>
<total percent="80" />
<package name="org.mypackage" percent="20" />
<class name="org.mypackage.Class" percent="60" />
<package name="org.mypackage.servlet.*"
percent="0" />
</failon>
which would mean that the total percentage must be at
least 80%, the "org.mypackage" package must be at least
20%, the "org.mypackage.Class" must be at least 60%,
and ignore the "org.mypackage.servlet" package and all
its siblings.

All of the qualifiers in the <failon> tag must pass for
the build to not fail (an "and" logic). Multiple
<failon> tags can be specified to reflect an "or" logic.

The "*" functionality would come later.

Discussion

  • Matt Albrecht

    Matt Albrecht - 2004-03-20

    Logged In: YES
    user_id=171822

    Finished. Added to GroboCoverage 1.1.0

     
  • Matt Albrecht

    Matt Albrecht - 2004-03-20
    • status: open --> pending
     
  • Matt Albrecht

    Matt Albrecht - 2004-03-20
    • status: pending --> open
     
  • Matt Albrecht

    Matt Albrecht - 2004-03-20

    Logged In: YES
    user_id=171822

    Finished. Added to GroboCoverage 1.1.0

     
  • Matt Albrecht

    Matt Albrecht - 2004-03-20
    • status: open --> closed