NCoverExplorer.NAntTasks
![]() ![]() ![]() |
v1.3.6.15 |
Create a .nunit project file for all the test assemblies matching the specified pattern. This should be created in the bin folder where your test assemblies are located so that the assemblies are within the AppDomain path. The .nunit file can then be used by NUnit or NCover based tasks.
Attribute | Type | Description | Required |
---|---|---|---|
appBase | string | Optional path to the nunit app base, when included full paths to each assembly (relative to the appbase) are included. | False |
appConfig | string | Optional path to an App.Config file to be specified in the .nunit project file. | False |
project | file | The nunit project file to create. | False |
failonerror | bool | Determines if task failure stops the build, or is just reported. The default is true. | False |
if | bool | If true then the task will be executed; otherwise, skipped. The default is true. | False |
unless | bool | Opposite of if . If false then the task will be executed; otherwise, skipped. The default is false. |
False |
verbose | bool | Determines whether the task should report detailed build log messages. The default is false. | False |
Create a .nunit project file in output bin folder for a specified test assembly.
<nunitproject project="C:\MyApp\bin\MyApp.nunit"> <fileset basedir="C:\MyApp\bin"> <include name="MyApp.Tests.dll" /> </fileset> </nunitproject>
Create a .nunit project file in output bin folder with an associated App.Config file for all test assemblies matching a pattern.
<nunitproject project="C:\MyApp\bin\MyApp.nunit" appConfig="C:\MyApp\bin\App.config"> <fileset basedir="C:\MyApp\bin"> <include name="MyApp.*.Tests.dll" /> </fileset> </nunitproject>