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

Notification

Icon
Error

Lower right circle shows more tests than we have
GRussell
#1 Posted : Wednesday, August 13, 2014 12:40:48 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 8/13/2014(UTC)
Posts: 2
Location: United States of America

Hi NCrunch community
I'm a big fan of NCrunch!
But, one oddity I've seen is this: Our project currently has 114 unit tests. But, sometimes the circle in the lower right circle (N) in Dev Studio will say that it's currently executing far more than the 114 unit tests. Perhaps 138 or so. We are running all our tests in a single thread... (i.e. we're not running unit tests in parallel) Is this a bug? Or is there something else going on that I'm not aware of.
I'm using 2.7.0.5
Thanks,
-Glenn

P.S. Sorry if I missed if this was already reported/discussed elsewhere.
Remco
#2 Posted : Wednesday, August 13, 2014 1:01:46 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Hi Glenn,

Thanks for posting!

Most likely this is due to a difference in the way that the tests are being counted. Many areas of NCrunch (including the corner spinner) will tend to count a fixture as a test, since it has an independent pass or fail status. This means that if you have a fixture that contains one test, this is effectively two tests as far as some aggregation systems are concerned.

There are also situations where tests can be queued for execution twice. This can happen if you have a test currently being executed, and a change is made to the codebase. The change will result in a new execution run for the same test being queued, while the test is still executing with an older version of the code. When NCrunch claims that a test is 'queued', this is inclusive of tests that are already under execution. This can be quite noticeable if you have large tasks in the processing queue consisting of many tests.

There is also a known issue (due for fix in the upcoming 2.8 release) that can sometimes result in tests being queued more than they should be. This can result in a marginal increase in the number of tests queued under certain circumstances (i.e. during the first build/test run of a session).


Cheers,

Remco
GRussell
#3 Posted : Wednesday, August 13, 2014 1:04:22 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 8/13/2014(UTC)
Posts: 2
Location: United States of America

Ok, sounds good. Thank you for the reply!!!
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.035 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download