dotCover and NUnit in dedicated test projects under VS2010 ?

Hi.

I just started today to evaluate the usability of dotCover as replacement for PartCover for one of our larger SW projects (C# under .NET 4.0).

Our dev process requires to separate the NUnit test code projects from the tested code projects, meaning "no test code in the tested DLLs".
So we ended up in dedicated solutions which consist of several C# projects which each contain NUnit test code for a dedicated C# project. The project-to-be-tested is referenced as DLL (from a build server), not as project reference.

How can we use dotCover (either via VS2010 or maybe standalone ?) to get test coverage numbers as well as highlighted code blocks of covered / not covered code blocks? We used PartCover, but it seems to be doomed for .NET 4.0

Is ReSharper mandatory for this (I'm just evaluating dotCover, no ReSharper installed).

Thanks ind advance and kind regards
    Martin

0
2 comments
Avatar
Permanently deleted user

So, one way to come around in that scenario is to run the NUnit program in the VS solution whoch contains the to-be-tested projects.
I activate the target C# project as default project, run dotCover application, select the NUnit gui exe and perform the NUnit tests via the NUnit GUI. After closing, I get the coverage results displayed.

Somehow annoying, since I have to have the NUnit test solution opened in addition for a test code development cycle (Modify test class, compile, switch to other VS2010, start dotCover, get results, go back to test code development solution).

Any better ideas ?

And: I do not get any code coverage shown, when I try to click on the affected method in the coverage display. Do I NEED to have ReSharper installed to achieve this ?

Greetings Martin

0

Hello Martin,
If you don't need per-test info and integration features, it is possible to use dotCover without ReSharper.
In this case you can choose dotCover -> Cover Application -> Standalone Application and specify path and arguments to your NUnit runner.
Some assemblies can be hidden in the coverage results if you use "project structure matching" option
project-structure-matching.png
In this case dotCover shows only those assemblies which match with the projects of the current solution. Disabling this option will show all assemblies.

Currently highlighting and navigation features do not work with snapshots obtained on the remote machines.
As an alternative you can generate an HTML report on the remote machine, it will contain source code with highlighting.
(available in dotCover 1.1 EAP builds: http://confluence.jetbrains.net/display/DCVR/dotCover+Early+Access+Program)

0

Please sign in to leave a comment.