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

Notification

Icon
Error

RDI Covering test not found
james
#1 Posted : Monday, March 18, 2024 11:06:25 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 3/13/2013(UTC)
Posts: 30
Location: United Kingdom

Thanks: 7 times
Was thanked: 9 time(s) in 9 post(s)
Covering test not found

RDI was working wonderfully on a fairly sizable project (Love this new feature btw, ❤️) But now I'm getting the above message when clicking on the RDI markers in the margin, even on covered code.

Let me know if there's anything I can do to help you diagnose the issue.
Remco
#2 Posted : Monday, March 18, 2024 7:45:24 PM(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)
Hi, thanks for sharing this issue.

The root cause of this error is when NCrunch can't find any code coverage for the first line of this method. Clearly, this makes no sense here as the method is covered. I suspect perhaps it's somehow resolving to the wrong method when you're trying to open the overlay.

It's my assumption that re-running the test doesn't resolve the issue.

Does this happen consistently for all your tests? Or just in certain places?
james
#3 Posted : Monday, March 18, 2024 9:25:41 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 3/13/2013(UTC)
Posts: 30
Location: United Kingdom

Thanks: 7 times
Was thanked: 9 time(s) in 9 post(s)
I haven’t seen anywhere in the code base where RDI is now functioning. Whether looking at a test or any covered method. Even methods with 100s of covering tests. (I’ve not checked the whole code base 🤣) The RDI markers in the margin are all faded green - as you might be able to tell from the image. Whereas, the coverage markers are bright green. It looks like it thinks it’s stale.

Re-running tests does not fix the issue, as you suspected.

I saw the RDI Storage Management window but couldn’t see how to reset/refresh it. Can I just delete the RDI storage folder?
Remco
#4 Posted : Tuesday, March 19, 2024 1:46:11 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)
At this stage in the system, RDI won't actually be touching the log files yet, so I don't think deleting them will resolve the issue .. but yes, you can just wipe the RDI storage folder and it will reset RDI's data.

I suspect something is wrong with your cached data. Could you try deleting your NCrunch cache file? Usually this is under the .NCrunch_Solution directory by your solution file. Make sure to leave the execution times cache file (otherwise the engine will lose your timings).
james
#5 Posted : Tuesday, March 19, 2024 9:41:55 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 3/13/2013(UTC)
Posts: 30
Location: United Kingdom

Thanks: 7 times
Was thanked: 9 time(s) in 9 post(s)
That worked. Cleared the cache and RDI is working again.

(Learnt the faded green doesn't mean stale :P)

If there's anything I can do to diagnose this, let me know. If it happens again I'll follow up.

Thanks !
james
#6 Posted : Friday, April 5, 2024 10:33:29 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 3/13/2013(UTC)
Posts: 30
Location: United Kingdom

Thanks: 7 times
Was thanked: 9 time(s) in 9 post(s)
Just to let you know this happened again today.

I'm wondering if this is because I haven't multiple branches of the same repo checked out in different folders?
Remco
#7 Posted : Friday, April 5, 2024 11:32:57 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)
We're getting closer to tracking down this issue. It seems to be intermittent, but I'm working with a user that can make it happen with useful regularity. I'll let you know when we have it cornered.
Remco
#8 Posted : Monday, April 15, 2024 11:48:13 PM(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)
james
#9 Posted : Thursday, April 25, 2024 10:01:52 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 3/13/2013(UTC)
Posts: 30
Location: United Kingdom

Thanks: 7 times
Was thanked: 9 time(s) in 9 post(s)
Thanks. I've installed this version. I've only had the issue 3-4 times since last posting but I will let you know if it happens again.
1 user thanked james for this useful post.
Remco on 4/25/2024(UTC)
Users browsing this topic
Guest (2)
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.051 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download