<nrecover> task
Instruments c# code with coverage code.This task should be run prior to cvs updates to ensure the code is not in an uninstrumented state. (This could happen if the build was terminated via ctrl-c.)
To load the task add in this line to your initialisation target in your NAnt build file:
<loadtasks assembly="NCover.dll" />
Attribute
Type
Description
Required
publishDir
string
Directory to output the expected coverage points that should be hit. The default is Project.BaseDirectory/expectedCoverage.xml.
False
reportname
string
Name of report to deinstrument the code for. This is required to be done for each report.
False
Attribute | Type | Description | Required |
---|---|---|---|
publishDir | string | Directory to output the expected coverage points that should be hit. The default is Project.BaseDirectory/expectedCoverage.xml. | False |
reportname | string | Name of report to deinstrument the code for. This is required to be done for each report. | False |
Nested Elements
None.Example
<nrecover/>