dotCover not showing all of the projects in a solution
Asked Answered
O

2

6

Let me start by saying I'm new to both ReSharper and dotCover and that I'm using v10.0.2 of both.

The attached screenshot shows solution explorer in VS and the coverage tree for a set of tests.

Whenever I run coverage, it always shows the same subset of assemblies in the coverage tree. Importantly, all of the tests shown are for code in either the Services or Infrastructure assemblies, neither of which show in the coverage tree.

Clearly, the product is not doing something right or I'm not.

  • Why are only some of the assemblies shown in the coverage tree?
  • Why aren't any of the assemblies covered by the tests I'm running shown in the coverage tree?
  • How do I make it work properly?

EDIT If it makes any difference, I'm using xUnit and have the xUnit running extension installed in ReSharper and the tests themselves run just fine.

Screen shot

October answered 22/1, 2016 at 17:1 Comment(3)
Do you spawn a new process inside your test fixtures?Paisano
@Matthias, Off hand, I have no idea. I do whatever the default action for dotCover/xUnit is.October
Please, include the xUnit in the title or in the tags. This is specific to it, and I'm facing the same issue with NUnit, but the solution doesn't work.Henriquez
P
6

This is due to shadow copying - when enabled, dotCover expects .pdb files to be copied too, and the standard shadow copy that xunit performs doesn't do this. If you disable shadow copy in the Unit Testing options page, it'll work fine. I think the xunit runner can be updated to fix this.

The YouTrack issue that describes what's going on is here: DCVR-7976

Pestilent answered 22/1, 2016 at 20:18 Comment(1)
I can't get it to work with UWP even though I've turned off shadow copyingPotshot
F
2

In my case the *.pdb files where deleted by a post-build event. After changing that, coverage-analysis worked again. This post from the support forum of jetbrains helped me

Floorman answered 18/8, 2016 at 8:55 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.