TeamCity NUnit Test Launcher

Search
Searching TeamCity 4.x Documentation
Table of Contents

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 both environment variables and system properties of the build system (NAnt, MSTest)
teamcity.dotnet.nunitlauncher — full launcher application name

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.
For .NET Framework 1.1 it is only possible to use MSIL option.
<NUnit vers.> The test framework to use. Possible values: NUnit-2.2.10, NUnit-2.2.9-VSTS, NUnit-2.4.1, NUnit-2.4.6 and NUnit-2.4.7
/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)

Labels

 
(None)