NAnt Only Integration
The following is the typical scenario of how NCover fits into a continuous build process. It is designed to be easily slotted into a continuous build process such as CruiseControl.NET.- Before you update from your source control system, run the nrecover task (to deinstrument your source files in case the previous build failed).
- Run ncover task to instrument your source code.
- Compile.
- Run your tests.
- Run ncoverreport task to generate your report.
- Run the nrecover task to deinstrument your source files.
(and keep those coverage percentages up!).
Multiple Reports
The ncover, nrecover and ncoverreport tasks each take a report name. To output multiple reports duplicate all calls to these three tasks with reportname='xxx'.There is an example multiple report nant build file that creates two reports - ncover's own coverage and ncover's tests coverage. The second is designed to find dead code in tests (it's either obsolete code or not testing what you thought it was).