Plugin coverage-cobertura v0.1
extends abstract-coverage
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.
| Parameter | Required? | Description | Default |
|---|---|---|---|
| coverage.required.packagelinerate | No | the required minimum line coverage for each package, as a percentage | 0 |
| coverage.required.totalbranchrate | No | the required minimum branch coverage for the entire module, as a percentage | 0 |
| coverage.required.packagebranchrate | No | the required minimum branch coverage for each package, as a percentage | 0 |
| cobertura.datafile.path | No | serialized object file where cobertura tracks coverage statistics | ${target.coverage.report}/cobertura.ser |
| coverage.report.format | No | report output format; text/html/xml | html |
| coverage.required.branchrate | No | the required minimum branch coverage for each class, as a percentage | 0 |
| coverage.required.totallinerate | No | the required minimum line coverage for the entire module, as a percentage | 0 |
| coverage.required.linerate | No | the required minimum line coverage for each class, as a percentage | 0 |
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:
- cobertura: generate cobertura covera report
- doit