Child pages
  • Integrating TeamCity dotCover Report with SonarQube Runner

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

b) An artifact dependency for ".teamcity/.NETCoverage/dotCover.dcvr" file and getting artifacts from "Build from the same chain".

Note: since TeamCity version 2019.1, dotCover.dcvr is no longer a hidden artifact that publishes is published by default. It is now created in the build temp temporary folder ("%system.teamcity.build.tempDir%\..\agentTmp\dotNetCoverageResults\dotCover.dcvr") and is now removed when the build finishes. To make it publish, explicitly enable publishing of this artifact, specify the path to the .dcvr file in Build artifacts paths file explicitly in the Artifacts paths of a build configuration.

2. In the new configuration ("Send to SonarQube") add a Command Line step with the following script: 

...

3. Add SonarQube Runner to the new configuration and add an additional command line argument with "-Dsonar.cs.dotcover.reportsPaths=dotCover.html"

Integrating with merging reports

...