TeamCity
 
You are viewing the documentation for an earlier version of TeamCity.

Configuring TeamCity NUnit Launcher via Web UI

Last modified: 20 April 2023

TeamCity provides its own NUnit test launcher, which can be easily configured via web UI for MSBuild and Visual Studio (sln) runners. You can set up NUnit testing options while creating or editing Build Configuration and TeamCity will run them and report the results. You do not need to configure the tests in your build script, neither you need to have NUnit runner.

To set up NUnit tests, do the following:

  1. While creating/editing Build Configuration, go to the Runner page.

  2. Select the desired build runner: MSBuild, or Visual Studio (sln).

  3. Enable Run NUnit tests option.

  4. Specify the properties to be passed to the TeamCity NUnit test launcher, such as Tests platform, Tests run framework, NUnit runner, etc.

  5. Continue with editing other Build Configuration settings.

When configuring TeamCity NUnit Test Launcher via UI (as well as when using it via command line, or from the build script tasks) you can set up .NET Code Coverage in few clicks at the same Runner page.