Teamcity running DotCover

I am trying to get DotCover to run with a build step in our TeamCity builds and not entirely sure how to go about this.

So far I am tryong to to use a command line runner type with the following:-

Command Executable: C:\Program Files (x86)\JetBrains\dotCover\v2.7\Bin\DotCover.exe

Command parameters: cover /TargetExecutable=packages/xunit.runners.1.9.2\tools\xunit.console.clr4.exe /TargetArguments=C:\BuildAgent\work\39cea08ba7c32ed4\Maclean.RosettaNetGateway.Tests\bin\Debug\Maclean.RosettaNetGateway.Tests.dll /Output=.\GregTest.dcvr /TargetWorkingDirectory=.

The problem is that I have is as follows:-

DotCover is only installed on one of the build agents and is working fine when I have then path in the Command Executable as above (i get my dcvr file and it opens and I can see the results which is great)
If I change this path to be %teamcity.tool.dotCover%\DotCover.exe and then run the build step I get a .dcvr file but when I open it, its blank

Can someone shed some light on best practice and why the file is blank? - is it because the %teamcity.tool.dotCover% is an unlicensed path or something?

Thanks
Gregor

1 comment
Comment actions Permalink

Hi Gregor,

No, the license is not needed if you run dotCover from command line. Please check that you specified command parameters correctly. For example build working directory is not constant /TargetArguments=C:\BuildAgent\work\39cea08ba7c32ed4\....
If it is not the case, then please attach full build log.

0

Please sign in to leave a comment.