FineCodeCoverage icon indicating copy to clipboard operation
FineCodeCoverage copied to clipboard

Don't get Highlight options

Open BvdVen opened this issue 2 years ago • 9 comments

Installed product versions

  • Visual Studio: 2022 Profesional
  • This extension: 1.1.209

Description

When I run unittests I don't see any highlights in my code about what code is (not)covered. In Options -> Envionment -> Fonts and Colors I also don't see any display name about coverage.

BvdVen avatar Jan 29 '24 10:01 BvdVen

When I run unittests I don't see any highlights in my code

If you mean https://github.com/FortuneN/FineCodeCoverage/issues/277 then it is currently unsupported but being worked on.

In Options -> Envionment -> Fonts and Colors I also don't see any display name about coverage. See https://github.com/FortuneN/FineCodeCoverage/issues/307 also being worked on.

I'll let you know when both are completed.

tonyhallett avatar Jan 29 '24 11:01 tonyhallett

If all goes to plan. Appears to be working.

image

tonyhallett avatar Jan 29 '24 14:01 tonyhallett

I found the Display Items, the're called "FCCCovered", "FCCNotCovered" and "FCCPartial" in my UI. But I don't see any colour displayed when I run my unittests.

BvdVen avatar Jan 29 '24 15:01 BvdVen

What highlights are you expecting ?

tonyhallett avatar Jan 29 '24 15:01 tonyhallett

I would expect the same code highlights as in your screenshot. But my code doesn't have any highlight, and the Fine Code Coverage window does say f.e. 79% coverage. So in that class I would expect to see some highlights, right? Do I need to click or enable something to see the highlights?

BvdVen avatar Jan 30 '24 07:01 BvdVen

As per https://github.com/FortuneN/FineCodeCoverage/issues/277 it is currently unsupported but being worked on as the screenshot demonstrates. I will probably commit this change today. We will be using Coverage Touched Area instead of FCCCovered etc to be consistent if Visual Studio Enterprise's built in functionality.

tonyhallett avatar Jan 30 '24 08:01 tonyhallett

Ok, I'll await the commit today 😄 About the names, should I'll be seeing "Coverage Touched Area" already, because I don't, or is that also in this commit?

BvdVen avatar Jan 30 '24 08:01 BvdVen

In Vs 2022 only Enterprise has those marker items. FCC will add them for Professional and Community. In this commit.

tonyhallett avatar Jan 30 '24 08:01 tonyhallett

Will be another day as I need to check the performance and have tests in place.

tonyhallett avatar Jan 30 '24 19:01 tonyhallett

Done - see readme for video / options

tonyhallett avatar Mar 07 '24 19:03 tonyhallett