JetBrains dotCover
Last modified: 20 April 2023TeamCity comes bundled with the console runner of JetBrains dotCover. Just by enabling the configuration option, you can collect code coverage for your .Net project and then view the coverage statistics and detailed coverage report inside the TeamCity web UI.
If you have a license for dotCover and have it installed on a developer machine, TeamCity-collected coverage results can be downloaded and viewed inside Visual Studio with the help of Visual Studio Addin.
tip
.NET Framework 3.5 must be installed on the agent machine. This is necessary for the bundled dotCover to work. Your project can depend on another .NET Framework version.
dotCover Settings
Path to dotCover Home | Leave this field blank to use the bundled dotCover. Alternatively, specify the path to the dotCover installed on a build agent. |
---|---|
Filters | Specify assemblies to profile - one per line - using the following syntax: |
Attribute Filters | If you don't want to know the coverage data solution-wide, you can exclude the code marked with an attribute (for example, with |
Note that dotCover coverage engine reports statement coverage instead of line coverage.
Bundled dotCover Versions
This section provides information on the versions of dotCover bundled with different TeamCity versions.
TeamCity Version | dotCover Version | |
---|---|---|
TeamCity 8.1 | dotCover 2.6 | |
TeamCity 8.0.6 (and later 8.0.x) | dotCover 2.6 | |
TeamCity 8.0.5 | dotCover 2.5 | |
TeamCity 8.0 | dotCover 2.2 | |
TeamCity 7.1.3 (and later 7.1.x) | dotCover 2.2 | |
TeamCity 7.1.2 | dotCover 2.1 | |
TeamCity 7.1 | dotCover 2.0 | |
TeamCity 7.0.1 (and later 7.0.x) | dotCover 1.2 | |
TeamCity 7.0 | dotCover 1.1 | |
TeamCity 6.0 | dotCover 1.0 |
Thanks for your feedback!