TeamCity 4.0 Help

TeamCity NUnit Test Launcher

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:

${teamcity.dotnet.nunitlauncher} <.NET Framework> <platform> <NUnit vers.> [/category-include:<list>] [/category-exclude:<list>] [/addin:<list>] <assemblies to test>

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.

<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.

<assemblies to test>

The list of assemblies paths separated by ';' or space.

Last modified: 20 April 2023