Code Coverage
Code coverage is a number of metrics that measure how your code is covered by unit tests. TeamCity supports the following coverage engines:
Java: IntelliJ IDEA coverage engine, EMMA open-source toolkit.
.NET: NCover 1.x, 3.x, PartCover and dotCover.
To get the code coverage information displayed in TeamCity, 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 Maven2 runner supports only IntelliJ IDEA coverage engine. The code coverage results can be viewed on the Overview tab of the Working with Build Results; detailed report is displayed on the dedicated Working with Build Results tab:
Moreover, the chart is available for code coverage on the Statistic Charts of the build configuration.
For the details on configuring code coverage, please, refer to the dedicated pages: Configuring Java Code Coverage, Configuring .NET Code Coverage.