I’m using Emma in my ant build to perform coverage reporting. For those that have used Emma, is there a way to get the build to fail if the line coverage (or any type of coverage stat) does not meet a particular threshold? e.g. if the line coverage is not 100%
Share
Not out of the box.
However, the
report.metricsproperty or attribute of<report></report>can be set forname, class, method, block, andline. See Coverage Metrics in the Emma reference.Use a plain-text report then a regexp filter to set up a fail condition.