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