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

Notification

Icon
Error

Code coverage not updated properly in 2.9.3
GreenMoose
#1 Posted : Thursday, August 28, 2014 8:02:53 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/17/2012(UTC)
Posts: 507

Thanks: 145 times
Was thanked: 66 time(s) in 64 post(s)
Screnshot

Test was first failing at line 166, then I fixed it and it is now passing but code coverage is not properly updated. (run impacted test auto engine mode).
If rerunning test explicitly within existing task runner it get covered.

I also noticed previously the closing bracket "}" was indicating not covered even though method was not throwing and rest of method was covered (which was somewhat annoying because I could not get it to become covered in NCrunch). Have no screenshot of that atm though.

*edit: submitted bug report with title "missing coverage"
Remco
#2 Posted : Thursday, August 28, 2014 8:23:29 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
Thanks for sharing this. Have you been able to find a way to make this happen again?

I took a look at the bug report you sent through and the engine hasn't thrown any internal errors, so this might be a tough one to pin down.
GreenMoose
#3 Posted : Thursday, August 28, 2014 8:42:47 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/17/2012(UTC)
Posts: 507

Thanks: 145 times
Was thanked: 66 time(s) in 64 post(s)
Remco;6276 wrote:
Thanks for sharing this. Have you been able to find a way to make this happen again?

No, I'll have to get back to you if I find any kind of consistency.
1 user thanked GreenMoose for this useful post.
Remco on 8/28/2014(UTC)
GreenMoose
#4 Posted : Friday, August 29, 2014 8:42:08 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/17/2012(UTC)
Posts: 507

Thanks: 145 times
Was thanked: 66 time(s) in 64 post(s)
Not sure if related but today test window "got stuck" at "loading code coverage data (28%)". Submitted bug report with same title.
Remco
#5 Posted : Friday, August 29, 2014 9:24:26 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
Thanks, I just saw this report come in. It looks like NCrunch failed to load coverage data because of inconsistencies in the cache file. It seems that the coverage data was referencing a test that didn't actually exist in the cache.

Have you had any rough exits from VS lately? I'm wondering what may have caused your cache to become corrupted.

Clearing out the _ncrunch_v2 directory should solve this problem if it's still haunting you.
GreenMoose
#6 Posted : Friday, August 29, 2014 9:29:31 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/17/2012(UTC)
Posts: 507

Thanks: 145 times
Was thanked: 66 time(s) in 64 post(s)
Remco;6287 wrote:
Thanks, I just saw this report come in. It looks like NCrunch failed to load coverage data because of inconsistencies in the cache file. It seems that the coverage data was referencing a test that didn't actually exist in the cache.

Have you had any rough exits from VS lately? I'm wondering what may have caused your cache to become corrupted.

Clearing out the _ncrunch_v2 directory should solve this problem if it's still haunting you.


That might be it, I killed it yesterday due to "the never ending window refresh" (likely an RS 7 issue). Thanks.
1 user thanked GreenMoose for this useful post.
Remco on 8/29/2014(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.036 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download