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

Skip to end of metadata
Go to start of metadata

Code coverage is a number of metrics that measure how your code is covered by unit tests. TeamCity supports the following coverage engines out of the box:

For importing reports from other coverage tools, see the related notes.

For importing coverage results in TeamCity, see this section.

To get the code coverage information displayed in TeamCity for the supported tools, you need to configure it in the dedicated section of a build runner settings page. The following build runners include code coverage support:

Note that currently the Maven2 runner supports IntelliJ IDEA and JaCoCo coverage engines.
The code coverage results can be viewed on the Overview tab of the Build Results page; detailed report is displayed on the dedicated Code Coverage tab.

The chart for code coverage is also available on the Statistics tab of the build configuration.

For the details on configuring code coverage, refer to the dedicated pages: Configuring Java Code Coverage, Configuring .NET Code Coverage.

See also: