Download dotCover .dcvr report for importing into Visual Studio dotCover
We are generating the coverage statistics for both our unit and integration tests using dotCover on TeamCity. TeamCity successfully merges the coverage snapshots for both the snapshots generated. Is there any way that we can get hold of the merge dotCoverSnapshot.dcvr that is generated by TeamCity? We want to be able to import this into dotCover running in VS 2019 so that we can use the snapshot for inspecting the coverage results on the local developer machines. I see that TeamCity publishes a CoverageReport.xml file as a hidden artifact but dotCover in VS can only import .dcvr snapshots.
I've seen a mention of using a teamcity.agent.dotCover.publishSnapshot=true build parameter, but doesn't seem to work as the dcvr snapshot is still not visible.
Please sign in to leave a comment.
Hi Carel,
there are instructions on generating them and on where to push them here: https://github.com/JetBrains/TeamCity.SonarQubePlugin/issues/62 . It should definitely work if you are using the latest releases.
Otherwise, you should be able to find them in the build's temporary folder. The path will look something like what is mentioned here: https://teamcity-support.jetbrains.com/hc/en-us/community/posts/206582209-dotCover-generating-1-6GB-coverage-file . This will be cleaned after the builds regularly, so ideally you'll pull them directly after the build or as a last step.
Would that work for you?
Hi Denis
Got it working using the link provided.
Thx