This repository has been archived by the owner on Aug 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
NCover Integration
JeremySkinner edited this page Sep 13, 2010
·
2 revisions
You can use the ncover and ncover_explorer runnables to execute NCover. Note that this is currently only tested against the old free Community Edition of NCover (v1.5), not the latest version (3.0).
Examples:
with ncover(): .toolPath = "c:/program files (x86)/NCover/NCover.console.exe" .reportDirectory = "build/Coverage" .workingDirectory = "src/Phantom.Tests/bin/Release" .applicationAssemblies = app_assemblies .program = nunit_exe .testAssembly = "Phantom.Tests.dll" with ncover_explorer(): .toolPath = "C:/program files (x86)/NCover/NCoverExplorer.console.exe" .project = "Phantom" .reportDirectory = "build/Coverage"
The following properties are available on ‘ncover’:
Option | Description | Default value | Type | |
---|---|---|---|---|
toolPath | (Required) The path to ncover.console.exe | none | string | |
program | (Required) The path to the program to profile (eg nunit-console.exe) | none | string | |
workingDirectory | The path where your test assembly is located | current working directory | string | |
testAssembly | (Required)The name of the assembly to test | none | string | |
reportDirectory | (Required) | Where the report should be stored | current working directory | string |
applicationAssemblies | (Required) | Names of the assemblies to report coverage on | Array of strings | |
excludeAttributes | Attributes that mark classes/methods to exclude from coverage | none | string | |
args | Additional arguments | none | Array of strings |
The following properties are available on ‘ncover_explorer’:
Option | Description | Default value | Type | |
---|---|---|---|---|
toolPath | (Required) The path to ncoverexplorer.console.exe | none | string | |
project | (Required) The name of your project | none | string | |
reportDirectory | (Required) | Where the reports should be stored | none | string |
minimum | Minimum acceptable coverage (percentage) | 90 | int | |
failUnderMinimum | Fails the build if coverage is below the minimum | false | bool | |
sort | How the report should be sorted | Name | string |