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)
Build/Test Issues
code coverage shows all black... but that isn't right...
Started by samJones on 6,067 views
Remco NCrunch Developer
#9199
26 Sep 2016 22:55 UTC
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?
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?
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.
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 NCrunch Developer
#9202
27 Sep 2016 04:46 UTC
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?
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?
Remco 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 wrote:Do you get any coverage if you run the test manually?
No (see above)
Remco wrote:Are the tests listed correctly in your Tests Window?
This item I am working on: No
Remco 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 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 NCrunch Developer
#9211
27 Sep 2016 23:38 UTC
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?
Does NCrunch work for you if you try creating a new empty solution with a single test in it?
Post a reply
Log in to reply.