TeamCity: how to attach dotcover to Rake build configuration ?

I'm using Rake for my build process. I wanted to take advantage of included dotcover in TeamCity 6. I read tutorial from Hadi Hariri (http://blogs.jetbrains.com/dotnet/2010/12/coverage-with-dotcover-teamcity-mstest-nunit-or-mspec/) but it shows how to do this with MSBuild, not Rake.

When you choose RunnerType: MSbuild, you have the ".net coverage tool" option available at the bottom. However, when you choose Rake, you don't have this at all.

Do I need to create a custom msbuild file to run coverage ? Or are there any tricks that would allow me to just keep additional task in my single rake file ?
thanks

2 comments
Comment actions Permalink

Hi

It's possible using service messages. Take a look at Manually Configuring Reporting Coverage page.

Michael

0
Comment actions Permalink
Michael,
I'm using TeamCity 7.1 and I have a similar problem. Our unit tests run via Gallio in an MSBuild target that contains a <Gallio> task. The article you linked seems to suggest that I need to just issue a TC service message to get dotCover to kick in on the Gallio host process? I couldn't get that to work, and I think I'm misunderstanding how this feature operates. The only way I've been able to get coverage is to configure a build step with the "NUnit" runner type, and even then I can't get the TC NUnit runner to recognize an NUnit addin we need: http://devnet.jetbrains.net/thread/438513?tstart=0

How do we get the bundled dotcover to monitor an arbitrary MSBuild target or task?
0

Please sign in to leave a comment.