TeamCity 4.0 Help

NUnit for NAnt Build Runner

TeamCity provides custom 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. The value could be the like NUnit-<version number>

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.

Last modified: 20 April 2023