Plugin coverage-cobertura v0.1


Overview

Provides test code coverage report using cobertura framework.

Parameters

The following property values can be changed to tune the behavior of this plugin.
Required parameters must be defined upon import, or the build will fail.

ParameterRequired?DescriptionDefault
coverage.required.packagelinerateNothe required minimum line coverage for each package, as a percentage0
coverage.required.totalbranchrateNothe required minimum branch coverage for the entire module, as a percentage0
coverage.required.packagebranchrateNothe required minimum branch coverage for each package, as a percentage0
cobertura.datafile.pathNoserialized object file where cobertura tracks coverage statistics${target.coverage.report}/cobertura.ser
coverage.report.formatNoreport output format; text/html/xmlhtml
coverage.required.branchrateNothe required minimum branch coverage for each class, as a percentage0
coverage.required.totallinerateNothe required minimum line coverage for the entire module, as a percentage0
coverage.required.linerateNothe required minimum line coverage for each class, as a percentage0

Build Phases

This plugin adds targets to each of the following build phases:

validate
  • init
process-classes
  • instrument
report
  • report
verify
  • check: fail the build if code coverage targets are not satisfied

Extra Targets

This plugin defines some extra Ant targets not attached to any build phase:




EasyAnt Plugin cobertura v1.9.2


EasyAnt Plugin log4j v1.2.9


EasyAnt Plugin asm-tree v3.0


EasyAnt Plugin asm v3.0


EasyAnt Plugin oro v2.0.8