FortuneN / FineCodeCoverage

Visualize unit test code coverage easily for free in Visual Studio Community Edition (and other editions too)
https://marketplace.visualstudio.com/items?itemName=FortuneNgwenya.FineCodeCoverage
Other
526 stars 40 forks source link

Getting Fine Code Coverage 7/26/2024 4:04:30 AM: Failed Initialization after running test explorer #445

Closed wzewde closed 3 months ago

wzewde commented 3 months ago

Installed product versions

Description

Fine Code Coverage 7/26/2024 4:04:30 AM: Initializing Fine Code Coverage 7/26/2024 4:04:30 AM: Failed Initialization System.InvalidOperationException: Sequence contains no elements at System.Linq.Enumerable.First[TSource](IEnumerable`1 source) at FineCodeCoverage.Engine.OpenCover.OpenCoverUtil.Initialize(String appDataFolder, CancellationToken cancellationToken) at FineCodeCoverage.Engine.CoverageUtilManager.Initialize(String appDataFolder, CancellationToken cancellationToken) at FineCodeCoverage.Engine.FCCEngine.Initialize(CancellationToken cancellationToken) at FineCodeCoverage.Core.Initialization.Initializer.d__13.MoveNext() Fine Code Coverage 7/26/2024 4:04:35 AM: Skipping TestExecutionStarting as FCC not initialized Fine Code Coverage 7/26/2024 4:04:36 AM: Skipping TestExecutionFinished as FCC not initialized

Steps to recreate

  1. Running test explorer
  2. Go to FCC output window

Current behavior

Not working

Expected behavior

Should show code coverage

Side Notes

tonyhallett commented 3 months ago

This suggests that FCC has been unable to unzip files in to your AppData folder. Can you see if this exists C:\Users\xxxx\AppData\Local\FineCodeCoverage\openCover ? Is this ARM64 Visual Studio ?

wzewde commented 3 months ago

Thanks for the hint @tonyhallett, I deleted the C:\Users\xxxx\AppData\Local\FineCodeCoverage\openCover folder, uninstalled Fine Code Coverage and installed again. It started working after that.