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.4: 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 is to be enabled |
geshilanguagespath | String | Language to use with GeSHi. | n/a | No |
<coverage-report outfile="reports/coverage.xml"> <report todir="reports/coverage" styledir="/home/phing/etc"/> </coverage-report>
report
Table C.5: Attributes
Name | Type | Description | Default | Required |
---|---|---|---|---|
styledir | String | The directory where the stylesheets are located. | The etc directory in the Phing installation. | No |
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 |