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
This should be expanded upon to include multiple
conditions. The format would be, inside the report:
<total percent="80" />
<package name="org.mypackage" percent="20" />
<class name="org.mypackage.Class" percent="60" />
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
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.