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
527 stars 40 forks source link

Show glyphs in a pending state whilst coverage is being calculated #273

Closed bernhard-dwe closed 2 years ago

bernhard-dwe commented 2 years ago

Installed product versions

Description

Processing of the coverage on a large solution can take some time. During this time it can appear as if FCC is not working or has crashed. Showing the FCC glyphs in the source files with a pending color would reassure users that it's working.

Steps to recreate

  1. Open a large solution with numerous files and projects
  2. Run FCC

Current behavior

No glyphs appear beside the lines of code

Expected behavior

Glyphs should show beside each lines of code to indicate that FCC has not yet determined coverage for that line

tonyhallett commented 2 years ago

If you have the Fine Code Coverage tool window open it shows you that it is processing. Similarly if you have the FCC output window pane open.

Additionally, when you have already run coverage there will be glyphs. When you re-run coverage those glyphs are removed.

To achieve what you are requesting is would require parsing the source code for each open file ( Roslyn perhaps ) , determining coverable lines and marking each of these lines. Given what is currently available I personally will not be adding this functionality.