Can dotCover measure coverage on references?

Is it possible to use dotCover to measure coverage on a referenced dll?  The test project I am developing is testing a dll which is included as a reference.  Currently when I run the dotCover on the project the reference is greyed out:

ReferenceGrey.PNG
Any ideas?

Cheers,
Andrew

4 comments

Hello Andrew,
To get full plain list of assemblies included into report you can uncheck "match with current project structure" option.
Also please make sure that assemblies you are interested in have PDBs and that they are not filtered out by coverage filters.

0

Hey Ruslan,

Where do I find that option?  I am using version 1.0.119.3 from the EAP.  I do have pdbs in the same folder that the dlls are located.  I have no coverage filters at the moment.

Cheers
Andrew

0

It can be found in coverage results panel (see screenshot)

match_with_solution_structure_button.png

Best Regards,
Ruslan

0

Thank you that did the trick!  Although a note for your development is that if it is used in conjunction with Visual NUnit at the same time as running an application in a pre-build step, the coverage only shows results for the pre-build application.  If I run the debugger in the normal way through NUnit then the coverage operates correctly.

Cheers,
Andrew

0

Please sign in to leave a comment.