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

Notification

Icon
Error

Color bullets are not updated
jotto
#1 Posted : Wednesday, June 7, 2017 5:45:47 PM(UTC)
Rank: Member

Groups: Registered
Joined: 3/12/2013(UTC)
Posts: 13
Location: Norway

Was thanked: 5 time(s) in 5 post(s)
Color bullets are not updated for new tests.

I have an issue where the color bullets do not update when I add new tests.

The color bullets are white until I make the test fail. Then the white color bullet is replaced by a red x at the Assert line. The other bullets are still white though.

If I click the arrow at the start of the test, it seems like the test has run.

Is this a bug?

Running NCrunch 39.0.1 on VS 2017 (15.2).

[img](- BROKEN LINK -)[/img]
Remco
#2 Posted : Wednesday, June 7, 2017 10:22:49 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 930 times
Was thanked: 1257 time(s) in 1170 post(s)
Hi, thanks for sharing this.

This looks to me like you have a coverage filter set in your configuration settings. This could be attached to your engine mode, or defined at global/solution level. Can you check this configuration setting?.
jotto
#3 Posted : Thursday, June 8, 2017 7:27:33 PM(UTC)
Rank: Member

Groups: Registered
Joined: 3/12/2013(UTC)
Posts: 13
Location: Norway

Was thanked: 5 time(s) in 5 post(s)
The setting says "When true".

Note that this doesn't happen in all tests. It works fine in some tests in the same test fixture. It seems random.
Remco
#4 Posted : Thursday, June 8, 2017 11:59:36 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 930 times
Was thanked: 1257 time(s) in 1170 post(s)
Does the pattern seem to be consistent, or intermittent? If you right click on the test and choose to run it individually, does the problem go away for the targeted test?

Could you try clearing your NCrunch cache file? This is stored under the _NCrunch_SOLUTIONNAME directory adjacent to your .sln file. Make sure the engine is disabled when you do this.
jotto
#5 Posted : Friday, June 9, 2017 7:16:51 AM(UTC)
Rank: Member

Groups: Registered
Joined: 3/12/2013(UTC)
Posts: 13
Location: Norway

Was thanked: 5 time(s) in 5 post(s)
The problem is intermittent. If I run the test manually, the problem sometimes disappear for that specific test.

I'll try to clear the cache next time the problem appears and get back to you!
Remco
#6 Posted : Friday, June 9, 2017 11:32:33 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 930 times
Was thanked: 1257 time(s) in 1170 post(s)
Thanks for confirming this. This smells very much like cache file corruption. I'd be interested to know if clearing the cache file resolves the issue. You don't need to wait for it to reappear - I'd recommend nuking the cache file immediately.
jotto
#7 Posted : Friday, June 9, 2017 8:55:29 PM(UTC)
Rank: Member

Groups: Registered
Joined: 3/12/2013(UTC)
Posts: 13
Location: Norway

Was thanked: 5 time(s) in 5 post(s)
Thanks -- seems like that did the trick!
Remco
#8 Posted : Friday, June 9, 2017 11:45:38 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 930 times
Was thanked: 1257 time(s) in 1170 post(s)
jotto;10573 wrote:
Thanks -- seems like that did the trick!


Awesome, thanks for confirming!
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.048 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download