TeamCity 9.0 Help

NUnit Support

NUnit runner

The easiest way to set up NUnit tests reporting in TeamCity is to add NUnit build runner as one of the steps to your build configuration and specify there all the required parameters.

Please, refer to NUnit build runner page.

Alternative approaches

However, if for some reason it is not applicable, TeamCity provides the following ways to configure NUnit tests reporting in TeamCity:

Comparison matrix:

Approach

Real-Time Reporting

Execution without TeamCity

Tests Reordering

Implicit TeamCity .NET Coverage

NUnit runner

<nunit2> NAnt task

/ *

<NUnit> MSBuild task

/ *

<NUnitTeamCity> MSBuild task

/ *

TeamCity Addin for NUnit

TeamCity NUnit Test Launcher

XML Reporting Plugin

only xml

N/A

N/A

* TeamCity-provided tasks may have different syntax/behavior. Some workarounds may be required to run the script without TeamCity.

In addition to the common test reporting features, TeamCity relieves a headache of running your NUnit tests under x86 process on the x64 machine by introducing an explicit specification of the platform and runtime environment versions. You can define whether to use .NET Framework 1.1, 2.0 or 4.0 started under a MSIL, x64 or x86 platform.

Last modified: 20 April 2023