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


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: related to https://youtrack.jetbrains.com/issue/TW-50854

Supported NUnit versions:

This section assumes, that you already have a NAnt build script with configured nunit2 task in it, and want TeamCity to track test reports without making any changes to the existing build script. Otherwise, consider adding NUnit build runner as one of the steps for your build configuration.


Specifies which version of the NUnit runner to use.
The value has to be specified in the following format: NUnit-<version>


It is possible to have several versions of NUnit installed on an agent machine and use any of them in a build.

Property name



Run all tests regardless of the number of failed ones, and fails if at least one test has failed.


Sets desired runtime execution mode for .NET 2.0 on x64 machines. Supported values are x86, x64 and ANY(default).


Sets desired .NET Framework version. Supported values are v1.1, v2.0, v4.0. Default value is equal to NAnt target framework


NUnit Support
NUnit Support
Excerpt Include


Specifies the list of third-party NUnit addins used for NAnt build runner.


Set true if you want to run each assembly in a new process.


Start tests form a single assembly files under x64 mode on .NET 2.0.

Code Block

<property name="teamcity.dotnet.nant.nunit2.platform" value="x64" />
    <formatter type="Plain" />
    <test assemblyname="MyProject.Tests.dll" />

Run all tests from category C1, but not C2.

Code Block

<nunit2 verbose="true" haltonfailure="false" failonerror="true">
         <formatter type="Plain" />
              <include name="dll.dll" />
               <include name="C1" />
               <exclude name="C2"/>

Explicitly specify version on NUnit to run tests with.
Note, that in this case, the following property should be added before nunit2 task call.

Code Block

<property name="teamcity.dotnet.nant.nunit2.version" value="NUnit-2.4.10" />
<nunit2> <!--....--> </nunit2>