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

Notification

Icon
Error

Metrics page doesn't show coverage for ONE file
ThatGuyDuncan
#1 Posted : Wednesday, March 4, 2020 2:40:18 PM(UTC)
Rank: Member

Groups: Registered
Joined: 5/31/2013(UTC)
Posts: 12
Location: Canada

Thanks: 2 times
Was thanked: 2 time(s) in 2 post(s)
I have a class defined in two files, each "public partial class C". One is generated, so I don't test much of it. The other file contains my bespoke logic, so I test that to 100%.

Last night, probably around 23:00, I noticed that the Metrics report was not showing 100% anymore -- it's not showing any number at all. Other files, when untested, report 0%. When I open the file, there are no cheerful dots indicating that a line is / is not under test. When I look at the metric for the other partial file, it reports test coverage to 34.48%, even though it's only a POCO (and therefore almost entirely untested).

Any ideas what I might have bonked in the setup to cause this behaviour?

[img=https://1drv.ms/u/s!AjkV7Vi7_yS6iL5ZEzELXeim3LOeOg?e=wV3kEd]screencap[/img]
ThatGuyDuncan
#2 Posted : Wednesday, March 4, 2020 6:15:58 PM(UTC)
Rank: Member

Groups: Registered
Joined: 5/31/2013(UTC)
Posts: 12
Location: Canada

Thanks: 2 times
Was thanked: 2 time(s) in 2 post(s)
... and a few hours later, it's back to normal. I wiped out my local repo and re-cloned, so I'll credit that with fixing the problem. :)
Remco
#3 Posted : Wednesday, March 4, 2020 11:31:28 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 932 times
Was thanked: 1258 time(s) in 1171 post(s)
Hi, thanks for sharing this problem.

This doesn't look like behaviour by design. I'm thinking that it might be something caused by corruption in the coverage database, in which case a reset of the engine and rerun of your tests would have a good chance of resolving the issue.

Please let me know if you find a way to reproduce the issue!
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.025 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download