Daily Usage Issues

Code coverage not updated properly in 2.9.3

Started by GreenMoose on 6,819 views

[img=http://i57.tinypic.com/25hq2bo.jpg]Screnshot[/img]

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"

Edited

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.
Remco 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.

Edited

Not sure if related but today test window "got stuck" at "loading code coverage data (28%)". Submitted bug report with same title.
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.
Remco 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.

Post a reply

Log in to reply.