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

Any plan to implement the plugin for Visual Studio Code? #219

Open HaroonSaid opened 2 years ago

HaroonSaid commented 2 years ago

Any plan to implement the plugin for Visual Studio Code?

tonyhallett commented 2 years ago

Yes at some time this year.

brutaldev commented 2 years ago

And the official release for VS 2022 on the marketplace? Will be happy to assist if you need, I noticed there is already a new VS2022 folder though so not sure if you are in the middle of this.

tonyhallett commented 2 years ago

Vs 2022 has been released.

brutaldev commented 2 years ago

@tonyhallett Really? The market place still says it only works with 2019 (https://marketplace.visualstudio.com/items?itemName=FortuneNgwenya.FineCodeCoverage) and the installer does not have 2022 as an installation option.

tonyhallett commented 2 years ago

Yes really. The marketplace has two entries as 2022 and 2019 are incompatible

brutaldev commented 2 years ago

OK... So do you have a link to the 2022 version? There are a couple of people also asking for it on the Q & A page too.

No 2022 results in the search: https://marketplace.visualstudio.com/search?term=fine%20code%20coverage&target=VS&category=All%20categories&vsVersion=vs2019&sortBy=Relevance

Website still points to the 2019 version as well so I'm kind of lost as to where it lives?

UPDATE: Found it, the search link puts in 2019 for some reason so changing that to 2022 made it show up. The link is https://marketplace.visualstudio.com/items?itemName=FortuneNgwenya.FineCodeCoverage2022 if anyone needs it.

liuyang8427 commented 1 year ago

Hello, is it supporting branch coverage for C++, I tested it with VS2022 and the line coverage works well, but the branch coverage always shows 0.

tonyhallett commented 1 year ago

@liuyang8427 FCC does not perform any code coverage itself. With C++ we use ms code coverage. According to report generator that creates the report from the coverage output. https://github.com/danielpalme/ReportGenerator/wiki/FAQ#which-coverage-tool-supports-which-features-in-the-html-report image

Which suggests ( Visual Studio ? ) that branch coverage is not available. But it does with a C# project !

FCC uses a local copy of the ms code coverage tool, version 17.1. 17.3.1 is the latest version. https://www.nuget.org/packages/Microsoft.CodeCoverage/

I have just run a test against code with a branch and there is no change with the latest version.

I have asked the question - vstest issue - Question - Should there be / will there be branch coverage for C++ projects ?