Daily Usage Issues

RDI Covering test not found

Started by james on 3,474 views

[img=https://i.ibb.co/NTmgypj/Screenshot-2024-03-18-110809.png]Covering test not found[/img]

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.

Edited

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?
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?

Edited

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).
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 !
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?
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.
I think we've gotten to the bottom of this one.

If you're still experiencing this issue, I'm hopeful the build below will solve it:

NCrunch_Console_5.7.0.1.msi
NCrunch_Console_5.7.0.1.zip
NCrunch_GridNodeServer_5.7.0.1.msi
NCrunch_GridNodeServer_5.7.0.1.zip
NCrunch_LicenseServer_5.7.0.1.zip
NCrunch_Rider_5.7.0.1.7z
NCrunch_Rider_5.7.0.1.zip
NCrunch_VS2010_5.7.0.1.msi
NCrunch_VS2010_5.7.0.1.zip
NCrunch_VS2012_5.7.0.1.msi
NCrunch_VS2012_5.7.0.1.zip
NCrunch_VS2013_5.7.0.1.msi
NCrunch_VS2013_5.7.0.1.zip
NCrunch_VS2015_5.7.0.1.msi
NCrunch_VS2015_5.7.0.1.msi.7z
NCrunch_VS2015_5.7.0.1.zip
NCrunch_VS2017_5.7.0.1.msi
NCrunch_VS2017_5.7.0.1.msi.7z
NCrunch_VS2017_5.7.0.1.zip
NCrunch_VS2019_5.7.0.1.msi
NCrunch_VS2019_5.7.0.1.msi.7z
NCrunch_VS2019_5.7.0.1.zip
NCrunch_VS2022_5.7.0.1.msi
NCrunch_VS2022_5.7.0.1.msi.7z
NCrunch_VS2022_5.7.0.1.zip
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.

Post a reply

Log in to reply.