NUnit for NAnt Build Runner

Search
Searching TeamCity 4.x Documentation
Table of Contents

TeamCity provides custom <nunit2> task implementation. TeamCity automatically replaces the original <nunit2> task with its own task, so if your build script uses the nunit2 task, it will automatically work without any modifications to the build script.

The following options are supported for TeamCity <nunit2> task implementation:

Property name Description
teamcity.dotnet.nant.nunit2.failonfailureatend Run all tests and fails if at least one test has failed.
teamcity.dotnet.nant.nunit2.platform Sets desired runtime execution mode for .NET 2.0 on x64 machines. Supported values are x86, x64 and ANY(default).
teamcity.dotnet.nant.nunit2.version Specifies which version of the NUnit runner to use.
NUnit versions support
TeamCity NUnit Test Launcher supports NUnit versions 2.2.10, 2.4.1, 2.4.6, 2.4.7, 2.4.8, and 2.5.0 alpha 4.
TeamCity Addin for NUnit supports only 2.4.6, 2.4.7, 2.4.8, and 2.5.0 alpha 4.

TeamCity NUnit test launcher will run tests in the .NET Framework, which is specified by NAnt target framework, i.e. on .NET Framework 1.1 or .NET Framework 2.0 runtime. TeamCity also supports test categories for <nunit2> task.

Shown properties can be using <property> task of NAnt or using TeamCity system properties under runner configuration.

Labels

 
(None)