TeamCity + dotCover + Typemock with coverage reporting = Pain

Answered

Anyone able to get coverage reports into their build configurations using dotCover and Typemock?  I am able to get coverage working without Typemock, but I was told I have to use TMockRunner command line to get this work, as opposed to the "Visual Studio Tests" build runner.  But I cant seem to find a way to get the coverage results to TeamCity, since it requires a message containing the path to the coverage file, but that is auto-generated by the dotCover, and is based on date/time.

Any help with this would be appreciated.

1 comment

Hello Shane,

The coverage results are stored in build temp directory. You can add a Command Line build step after your Coverage have completed with script, which will copy needed files from %system.teamcity.build.tempDir% to %system.teamcity.build.checkoutDir%.

Also dotCover results are published as hidden artifacts. So you can download them in the another build configuration using artifact dependency.

We have the related request https://youtrack.jetbrains.com/issue/TW-25204, please vote for it.

0

Please sign in to leave a comment.