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

Notification

Icon
Error

NCrunch does not see tests
avishnyakov
#1 Posted : Monday, September 21, 2015 7:27:44 AM(UTC)
Rank: Member

Groups: Registered
Joined: 7/12/2015(UTC)
Posts: 27
Location: Australia

Thanks: 5 times
Was thanked: 6 time(s) in 6 post(s)
Hello,

Have 601 tests in tjhe VS solution, but NCrunch keeps teeling that there are 500-something tests, like 518.
How to overcome that issue?
Remco
#2 Posted : Monday, September 21, 2015 8:32:26 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi, thanks for sharing this.

The first thing to check is whether there is an inconsistency in the way the tests are counted. When NCrunch reports the number of tests it's monitoring, this is the number of leaf-node tests only - it does not include virtual constructs such as fixtures, parameterised enclosures, assemblies, etc.

The next thing to check for is tests that may be bundled together by NCrunch. Depending upon your test framework and framework utilisation type, NCrunch may be representing groups of tests as singular tests to work around test framework limitations (particularly if you are using static analysis to discover tests).

Following this, I'd recommend trying some exports to see if you can spot any tests that are obviously missing from the results you are expecting. The difference is large enough that simply sifting through the tests in alphabetical order should yield a difference fairly quickly. Once you've found one or two, you've likely discovered the pattern and you'll know a great deal more :)
1 user thanked Remco for this useful post.
avishnyakov on 10/25/2015(UTC)
avishnyakov
#3 Posted : Sunday, October 25, 2015 4:37:41 AM(UTC)
Rank: Member

Groups: Registered
Joined: 7/12/2015(UTC)
Posts: 27
Location: Australia

Thanks: 5 times
Was thanked: 6 time(s) in 6 post(s)
Hi Remco,

Thanks! Was our fault. Re-enabling NCrunch and re-building the whole solutions helped.
Mostly, we found such "issues" once NCrunch was disabled. Now always checking if NCrunch is on and all seems to be good.

Thanks again!
1 user thanked avishnyakov for this useful post.
Remco on 10/25/2015(UTC)
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.027 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download