Unable to render embedded object: File (TeamCity48.png) not found.

TeamCity 9.x Documentation

Documentation for Previous Versions

Icon

You are viewing the documentation of TeamCity 9.x, which is not the most recently released version of TeamCity.
View this page in the latest documentation or refer to the listing to choose the documentation corresponding to your TeamCity version.

 

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Option

Description

<.NET Framework>

Version of .NET Framework to run tests. Acceptable values are v1.1, v2.0, v4.0 or ANY.

<platform>

Platform to run tests. Acceptable values are x86, x64 and MSIL.

Note

For .NET Framework 1.1 only MSIL option is available.

<NUnit vers.>

Test framework to use. The value has to be specified in the following format: NUnit-<version>.

Excerpt Include
TCD9:NUnit SupportTCD9:NUnit Support
nopaneltrue
NUnit Support

/category-include:<list>

The list of categories separated by ';' (optional).

/category-exclude:<list>

The list of categories separated by ';' (optional).

/addin:<list>

List of third-party NUnit addins to use (optional).

<assemblies to test>

List of assemblies paths separated by ';' or space.

/runAssemblies:processPerAssembly

Specify, if you want to run each assembly in a new process.

...

Code Block
%teamcity.dotnet.nunitlauncher% v2.0 x64 NUnit-2.5.0 /addin:Addin1.dll;Addin2.dll Assembly.dll Assebly2.dll

The version of .NET Framework to run tests. Possible values are v1.1, v2.0, v4.0 (starting from
 options:
{code}
${teamcity.dotnet.nunitlauncher} <.NET Framework> <platform> <NUnit vers.> [/category-include:<list>] [/category-exclude:<list>] [/addin:<list>] <assemblies to test>
{code}
|| Option || Description ||
| <.NET Framework> | The version of .NET Framework to run tests. Possible values are *v1.1*, *v2.0*, *v4.0* (starting from 5.1.x) or *ANY*.

The test framework to use. Possible values are NUnit-<version>, where <version> is one of the following:

 |
| <platform> | The platform to run tests. Possible values: *x86*, *x64* and *MSIL*.
{note}For .NET Framework 1.1 it is only possible to use *MSIL* option.\\
 {note} |
| <NUnit vers.> | The test framework to use. Possible values are *NUnit-<version>*, where *<version>* is one of the following:
{include: SupportedNUnitVersions} |
| /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.

{info}Addins are supported
in NUnit 2
 in NUnit&nbsp;2.4.x versions.

\\
 {info} |
| <assemblies to test> | The list of assemblies paths separated by *';'* or space. |
{note}{*}NUnit-2.2.9-VSTS* is a modified version
of NUnit 2
 of NUnit&nbsp;2.2.9 to run Microsoft Visual Studio Team System Tests (for Microsoft Visual Studio 2005)
{note}
{show-if}
Wiki Markup
{show-if
:action
=edit
}
old content


TeamCity uses its own NUnit tests launcher that can be used from 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 the Parameters page to define build environment variable with value: %
}} --- full launcher application name
To have this property as environment variable, please use the *Parameters* page to define build environment variable with value: %{{system.teamcity.dotnet.nunitlauncher}}%


The launcher supports the following command line
options:

Option

Description

<.NET Framework>

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

<assemblies to test>

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