TeamCity uses its own NUnit tests launcher that can be used from the any runner. The tests are run according to the passed parameters and if the process is run inside TeamCity build agent environment, the results are reported to the TeamCity agent.
The property is available as system properties of the build system (NAnt, MSTest)
teamcity.dotnet.nunitlauncher — full launcher application name
To have this property as environment variable, please use 6.Properties and environment variables page to define build environment variable with value: %system.teamcity.dotnet.nunitlauncher%
The launcher supports the following command line options:
| Option |
Description |
| <.NET Framework> |
The version of .NET Framework to run tests. Possible values are v1.1, v2.0 or ANY. |
| <platform> |
The platform to run tests. Possible values: x86, x64 and MSIL.
 | For .NET Framework 1.1 it is only possible to use MSIL option. |
|
| <NUnit vers.> |
The test framework to use. Possible values are NUnit-<version>, where <version> is one of the following:
|
| /category-include:<list> |
The list of categories separated by ';'. Optional parameter. |
| /category-exclude:<list> |
The list of categories separated by ';'. Optional parameter. |
| /addin:<list> |
Specifies the list of used NUnit addins. Optional parameter.
 | Addins are supported in NUnit 2.4.x versions. |
|
| <assemblies to test> |
The list of assemblies paths separated by ';' or space. |
 | NUnit-2.2.9-VSTS is a modified version of NUnit 2.2.9 to run Microsoft Visual Studio Team System Tests (for Microsoft Visual Studio 2005) |