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

No coverage results displayed #390

Closed millele3 closed 8 months ago

millele3 commented 8 months ago

Installed product versions

Description

After running unit tests, not coverage results show up

Steps to recreate

  1. Run unit tests
  2. Look at Fine Code Coverage window

Current behavior

This happened to me in the past, but would correct itself after restarting VS or rebooting, or cleaning solution and re-running tests Now, it never corrects itself, and never shows results. I uninstalled, and re-installed extension. Not improvement.

Expected behavior

I expect to see coverage results after running tests

Side Notes

image

tonyhallett commented 8 months ago

What does the log show

millele3 commented 8 months ago

image

Fine Code Coverage 2/5/2024 10:52:29 AM: Initializing Fine Code Coverage 2/5/2024 10:52:29 AM: Initialized Fine Code Coverage 2/5/2024 10:54:11 AM: See option RunMsCodeCoverage for a better ( Beta ) experience. https://github.com/FortuneN/FineCodeCoverage/blob/master/README.md Fine Code Coverage 2/5/2024 10:54:11 AM: Coverage collected when tests finish. RunInParallel option true for immediate Fine Code Coverage 2/5/2024 10:54:52 AM: ================================== START ================================== Fine Code Coverage 2/5/2024 10:54:52 AM: Copy : C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\RequestProcessor.pdb -> C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\fine-code-coverage\build-output\RequestProcessor.pdb Copy : C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\Tests.runtimeconfig.json -> C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\fine-code-coverage\build-output\Tests.runtimeconfig.json Copy : C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\Data.dll -> C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\fine-code-coverage\build-output\Data.dll Copy : C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\nunit_random_seed.tmp -> C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\fine-code-coverage\build-output\nunit_random_seed.tmp Copy : C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\Tests.deps.json -> C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\fine-code-coverage\build-output\Tests.deps.json Copy : C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\Lambda.API.exe -> C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\fine-code-coverage\build-output\Lambda.API.exe Copy : C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\Data.pdb -> C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\fine-code-coverage\build-output\Data.pdb Copy : C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\RequestProcessor.dll -> C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\fine-code-coverage\build-output\RequestProcessor.dll Copy : C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\Tests.pdb -> C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\fine-code-coverage\build-output\Tests.pdb Copy : C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\CoverletSourceRootsMapping -> C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\fine-code-coverage\build-output\CoverletSourceRootsMapping Copy : C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\Lambda.API.deps.json -> C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\fine-code-coverage\build-output\Lambda.API.deps.json Copy : C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\Tests.dll -> C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\fine-code-coverage\build-output\Tests.dll Copy : C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\Lambda.API.dll -> C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\fine-code-coverage\build-output\Lambda.API.dll Copy : C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\Lambda.API.runtimeconfig.json -> C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\fine-code-coverage\build-output\Lambda.API.runtimeconfig.json Copy : C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\Lambda.API.xml -> C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\fine-code-coverage\build-output\Lambda.API.xml Copy : C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\Asi.Itg.GoDataIntegrations.Models.dll -> C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\fine-code-coverage\build-output\Asi.Itg.GoDataIntegrations.Models.dll Copy : C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\Lambda.API.pdb -> C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\fine-code-coverage\build-output\Lambda.API.pdb Copy : C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\Asi.Itg.GoDataIntegrations.Models.pdb -> C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\fine-code-coverage\build-output\Asi.Itg.GoDataIntegrations.Models.pdb File synchronization duration : 00:00:00.0790304 Fine Code Coverage 2/5/2024 10:54:52 AM: Run Coverlet (Tests) Fine Code Coverage 2/5/2024 10:54:52 AM: Coverlet Run (Tests) - Arguments "C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\fine-code-coverage\build-output\Tests.dll" --format "cobertura" --exclude-by-file "*/Migrations/" --exclude-by-attribute GeneratedCode --target "dotnet" --threshold-type line --threshold-stat total --threshold 0 --output "C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\fine-code-coverage\coverage-tool-output\Tests.coverage.xml" --targetargs "test ""C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\fine-code-coverage\build-output\Tests.dll"" --nologo --blame --results-directory ""C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\fine-code-coverage\coverage-tool-output"" --diag ""C:\AsiCode\Asi-Itg-AI-GoData\Asi.Itg.GoDataIntegrations\Tests\bin\Debug\net6.0\fine-code-coverage\coverage-tool-output/diagnostics.log"" "

At least it looks like results are in the html file, even though not in the VS UI

But I miss not seeing the red and green ticks in the code class files

tonyhallett commented 8 months ago

I think that there is a bug where you run tests without any code file open.

millele3 commented 8 months ago

Ah, yes I seem to see results in the output window if I have a code file open. However, I still don't see the red/green tick marks that show covered and uncovered code. That was a great feature.

image

tonyhallett commented 8 months ago

Run coverage again it will appear. If there are no code files open when you run coverage the taggers are not aware of the line coverage when a file opens. They handle the event so do update

Bug has been fixed in the feature I am currently completing

millele3 commented 8 months ago

It didn't seem to be working. Then when I got on my laptop today, I see the taggers. I may have some sort of performance issue where it is taking a very, very long time to see coverage results and taggers. I seem to have noticed performance problems in VS since the last VS update.