C.5 CoverageReportTask
Prev | Appendix C. Optional tasks | Next

## C.5 CoverageReportTask

The CoverageReportTask formats a coverage database into a framed HTML report using XSLT. The report can optionally make use of the Generic Syntax Highlighting library, `GeSHi` (See GeSHi Homepage) library to mark up source code. The path to the library (if not in the default path) can be specified as an attribute.

Table C.5: Attributes

Name | Type | Description | Default | Required
--- | --- | --- | --- | ---
`outfile` | `String` | The location for the intermediate XML file. | coverage.db | Yes
`classpath` | `String` | Additional classpath to locate source referenced in the report | n/a | No
`geshipath` | `String` | Path to GeSHi highlighting library | n/a | No/Yes* If syntax highlighting si to be enabled
`geshilanguagespath` | `String` | Language to use with GeSHi | n/a | No

### C.5.1 Example

    <coverage-report outfile="reports/coverage.xml">
      <report todir="reports/coverage" styledir="/home/phing/etc"/>
    </coverage-report>

### C.5.2 Supported Nested Tags

- report

  Table C.6: Attributes

  Name | Type | Description | Default | Required
  --- | --- | --- | --- | ---
  `styledir` | `String` | The directory where the stylesheets are located. | n/a | Yes
  `todir` | `String` | The directory where the files resulting from the transformation should be written to. |  | Yes
  `title` | `String` | Title of the project (used in the generated document(s)) |  | No
  `usesorttable` | `Boolean` | Whether to use the sorttable JavaScript library (see http://www.kryogenix.org/code/browser/sorttable/) | `false` | No

Prev | Up | Next
C.4 CoverageMergerTask | Home | C.6 CoverageSetupTask