Child pages
  • Integrating TeamCity dotCover Report with SonarQube Runner

Versions Compared

Key

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

This guide assumes there is a Build Configuration (e.g. named "Tests + dotCover") building a .NET project and running tests with dotCover enabled (one or several build steps): 

Integrating with chained build

1. Create another Build Configuration (e.g. named "Send to SonarQube") and add the following 2 dependencies on initial configuration ("Tests + dotCover"):

...

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

Integrating with merging reports

After the last build step with enabled dotCover, add a new step to merge all the collected coverage into a single XML in a well-known place as described here.