Build/Test Issues

NCrunch does not see tests

Started by avishnyakov on 5,914 views

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?
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 :)
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!

Post a reply

Log in to reply.