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
516 stars 39 forks source link

Can no longer see code coverage after updating to VS2022 17.6.4 #338

Closed tandreasen closed 1 year ago

tandreasen commented 1 year ago

Installed product versions

Description

Fine code coverage not detecting ANY coverage since updating

Steps to recreate

Have a suite of xunit tests - right click solution\Run Tests

Current behavior

Report is showing 0 covered lines, and all red indicators on lines that I know (from the unit tests) are covered.

image image

Expected behavior

Previously it used to work and show me green lines that were covered, red lines that were not. I recently updated to latest version of VS Build Tools 2022, and added some environment path variables to get my build working (was an issue with .NET 6 SDK not working) - not sure if that can somehow be related or not.

I confirmed that there are still PDB files being generated, and other things to check here.

Lastly, I tried uninstalling\reinstalling the VS2022 Fine Code Coverage extension, but it yielded the same result.

I also confirmed that all my tests are passing, but that shouldn't have an impact.

I will email the logs and cross references this issue, if it helps.

tandreasen commented 1 year ago

This was fixed by setting RunMsCodeCoverage to Yes (I never had to do this before). Closing issue - thanks!