Closed DanWallaceAdslot closed 5 years ago
Yes, since 2019.1 .dcvr file is not published by default. Please add a teamcity.agent.dotCover.publishSnapshot=true
config parameter. You can also use teamcity.agent.dotNetCoverage.publishPath
parameter to specify file location.
Thanks Linfar, I've done that and the file is being generated again :)
Thanks for update
@Linfar please help me, where do I have to add "teamcity.agent.dotCover.publishSnapshot=true" config parameter? May you please make me an example. I do not find the correct point. I'm using the 2019.2 version. I need to collect the dcvr file to convert to HTML and import in SonarQube Thank you very much!
@nazarenomanco You should add a build parameter for the Build Configuration. Navigate to Edit Build Configuration administration page, find Parameters tab and push Add new parameter button.
@Linfar thank you! I have added here the parameters but it give me an error. There is any tutorial somewhere? Thanks!
What error? I don't see neither parameter nor error on your screenshot
TL;DR: Build configuration using Nunit3 to run tests with dotCover as coverage tool
I was using a basic setup:
This was allowing me to see the dotCover results in TeamCity and also the only way I could figure out how to send coverage through to SonarQube.
Was working fantastically until I upgraded TeamCity to 2019.1. Now the .dcvr file is missing and am currently in the process of trying to figure out an alternative method