class CoberturaReportsTask extends AbstractCoberturaTask
Task that creates a summary XML report and/or a detailed HTML report from a Cobertura coverage analysis.
Note that all properties are read-only; they are configured in the task's context.
The properties of this task are to a large extent identical to the ones of the
Cobertura-Report Ant task, see the
reference> for more
information.
| Type | Name and description |
|---|---|
void |
createReports()Create the Cobertura reports specified by the reports property. |
java.io.File |
getDataFile()Get the file containing meta data about the instrumented classes and the test execution. |
CoberturaReports |
getReports()Get the reports produced by this task. |
FileCollection |
getSourceDirs()Get the directories containing the sources of the analyzed classes. |
java.lang.String |
getSourceEncoding()Get the encoding to use when reading the source files. |
void |
init(CoberturaExtension pExtension, CoberturaContext pContext) |
CoberturaReports |
reports(groovy.lang.Closure pClosure)Configure this task's reports. |
| Methods inherited from class | Name |
|---|---|
class AbstractCoberturaTask |
getCoberturaClassPath, getContext, getExtension, init |
Create the Cobertura reports specified by the reports property.
Get the file containing meta data about the instrumented classes and the test execution.
Get the reports produced by this task.
Get the directories containing the sources of the analyzed classes.
Get the encoding to use when reading the source files. The platform's default encoding will be used if this property is null.
Configure this task's reports.
pClosure - A closure that configures the reports.