Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

code coverage shows all black... but that isn't right...
samJones
#1 Posted : Monday, September 26, 2016 6:13:03 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/17/2016(UTC)
Posts: 8
Location: United States of America

We have a large sln (90+ projects).

In the past, I have opened a unit test, run the tests, and the code coverage indicators are magically there.

Today I opened a unit test I have never worked on (nunit), run the tests (this does tests and multiple iterations to make sure we do not introduce slow code), yet the code under test shows all black markers RE coverage.

I know that is wrong, but do not know how to resolve.

Pls advise!


(VS2015, latest ncrunch installed today, on win10)
Remco
#2 Posted : Monday, September 26, 2016 10:55:10 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,145

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi, thanks for sharing this issue. There are many reasons why the markers could be black. If you haven't already checked it, I do recommend having a look through this documentation page - http://www.ncrunch.net/documentation/troubleshooting_missing-code-coverage.

In case this doesn't solve your problem, here are a few questions to help me narrow down what is happening:

- Is it just one test or one project that is missing coverage, or all of them?
- Do you have any data showing in the NCrunch metrics tool window?
- Which engine mode are you using? Can you confirm whether the engine mode has been customised in any way?
- Does the test have a little '>' arrow marker on its first line?
- Does the test get coverage if you run it manually?
samJones
#3 Posted : Tuesday, September 27, 2016 2:46:27 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/17/2016(UTC)
Posts: 8
Location: United States of America

OK, all code markers are black, affects everything, not just this one test.

The difference is:

In the past, I would open a single project, run the tests in that project, and code coverage markers work fine. That was my eval of ncrunch.

Now, in real life, we have a solution open, which has 90+ projects, and ncrunch is not working well....

How do I get ncrunch focused down so it is useful.
Remco
#4 Posted : Tuesday, September 27, 2016 4:46:24 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,145

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Does the test have a little '>' arrow marker on its first line?

Do you get any coverage if you run the test manually?

Are the tests listed correctly in your Tests Window?

Do you have any data showing in the Metrics Tool Window?

Which engine mode are you using? Can you confirm whether the engine mode has been customised in any way?
samJones
#5 Posted : Tuesday, September 27, 2016 4:50:03 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/17/2016(UTC)
Posts: 8
Location: United States of America

Remco;9202 wrote:
Does the test have a little '>' arrow marker on its first line?


In VS Editor or in the ncrunch test runner view?

VS Editor: No
ncrunch runner: not sure if this project even is showing up in the list (seems not to be). I can run the tests interactively (via testdriven.net) in VS, when I do this, the unit under test is updated w black dots.

Remco;9202 wrote:
Do you get any coverage if you run the test manually?


No (see above)

Remco;9202 wrote:
Are the tests listed correctly in your Tests Window?


This item I am working on: No

Remco;9202 wrote:
Do you have any data showing in the Metrics Tool Window?


You mean VS Analyze | Metrics?
(Not sure what you refer to here)


Remco;9202 wrote:
Which engine mode are you using? Can you confirm whether the engine mode has been customised in any way?


Engine Mode: "Run All Tests Automatically"
I believe it is stock (see below) // oops, can't attach image, sorry!

Remco
#6 Posted : Tuesday, September 27, 2016 11:38:01 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,145

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Thanks for the extra details. To me, it looks like NCrunch isn't detecting your tests. Can you check in the NCrunch Tests Window to see if you have any build errors showing? Do you have any tests at all showing in this window?

Does NCrunch work for you if you try creating a new empty solution with a single test in it?
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.039 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download