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

Don't get Highlight options #388

Closed BvdVen closed 4 months ago

BvdVen commented 5 months ago

Installed product versions

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.

tonyhallett commented 5 months ago

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 commented 5 months ago

If all goes to plan. Appears to be working.

image
BvdVen commented 5 months ago

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.

tonyhallett commented 5 months ago

What highlights are you expecting ?

BvdVen commented 5 months ago

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?

tonyhallett commented 5 months ago

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.

BvdVen commented 5 months ago

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?

tonyhallett commented 5 months ago

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

tonyhallett commented 5 months ago

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

tonyhallett commented 4 months ago

Done - see readme for video / options