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
506 stars 38 forks source link

No Glyphs on *.razor files #421

Closed pauldavis-dwe closed 2 months ago

pauldavis-dwe commented 2 months ago

Installed product versions

Description

After successfully getting coverage from running tests, glyphs do not show on .razor files (but do on .cs files)

Steps to recreate

  1. Run tests
  2. See no glyphs on .razor files

Current behavior

No glyphs on .razor files

Expected behavior

Glyphs on .razor files

Side Notes

tonyhallett commented 2 months ago

Thanks Paul for reporting and for attaching the repo. I will look at this. In the meantime you can put the C# code in a code-behind file

pauldavis-dwe commented 2 months ago

Thanks, I do on my production projects

tonyhallett commented 2 months ago

Available in latest release.

pauldavis-dwe commented 2 months ago

Erm... Glyphs in .cs files now don't work...

tonyhallett commented 2 months ago

Thanks Paul will check

tonyhallett commented 2 months ago

Glyphs do work although I have changed the functionality to be strict.

If I file has been changed outside of the document then the coverage marks can no longer be expected to apply. If you have the file open and change it after test execution starts then again the marks can no loner be expected to apply.

If you check the FCC output window pane there should be a message when this occurs.

I can add a boolean option to override this behaviour.

tonyhallett commented 2 months ago

If this is not the behaviour that you are witnessing then please chaeck the FCC Output Window Pane for exceptions.

pauldavis-dwe commented 2 months ago

OK, seems to be working as expected after a reinstall. Sorry for the trouble