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

PartCover

Last modified: 20 April 2023

TeamCity supports code coverage with PartCover (2.2 and 2.3) for NUnit tests run via the TeamCity NUnit test runner, which can be configured in one of the following ways: via the web UI, TeamCity NUnit Test Launcher, NUnit for MSBuild, NUnit for MSBuild, NUnit for NAnt Build Runner.

To configure PartCover:

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

  2. Select PartCover (2.2 or 2.3) as a .NET coverage tool.

  3. Select the .Net runtime platform and version.

    tip

    Some versions of PartCover support .NET Framework 2.0 and 3.5 and can be started under x86 platform only. Make sure you use the appropriate configuration options.

  4. Set up the PartCover options - find the description of the available options below.

Reporting PartCover Results Manually



If .NET code coverage is collected by the build script and needs to be reported inside TeamCity (for example, Rake, or if you run tests via a test launcher other than TeamCity NUnit Test Launcher), there is a way to let TeamCity know about the coverage data. Please read more at Manually Configuring Reporting Coverage.