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
516 stars 39 forks source link

Filter projects/files with 100% or 0% coverage #367

Closed FF-Brown closed 7 months ago

FF-Brown commented 8 months ago

Installed product versions

Description

Love this extension! It's been incredibly helpful so far. It would be awesome if I could filter the coverage report to exclude either projects/files with 100% coverage or 0% coverage. I'm working with a large solution and it would be nice to completely ignore the sections of code I haven't gotten to UT yet. See screenshot. I'd like to be able to ignore the crossed-out items. Even better would be the ability to do this for files. image

If I get some extra time and if this is a feature you'd be willing to include, I'd be happy to work on this change.

tonyhallett commented 8 months ago

There is an option HideFullyCovered. As for hiding what you have not unit tested. You can exclude everything then include what you are working on

FF-Brown commented 8 months ago

@tonyhallett Thanks for pointing out that setting! I wasn't aware of it. What I was trying to do is compare two branches and determine whether there was any difference in coverage between them. This was difficult to do because there were so many 0% covered files. So the process WOULD have been expedited if I'd thought to make a list of files with >0% coverage on one branch and only include those files on the other branch.

I still maintain that it would be nice to be able to exclude files with 0% coverage. It would be nice to ignore areas of code that aren't a concern

tonyhallett commented 7 months ago

Added option Hide0Coverage that you need to set to true. There is also Hide0Coverable that defaults to true - this gets rid of coverage for nunit and similar.

tonyhallett commented 7 months ago

available on marketplace now.