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

Command that can be executed in the a BuildServer (gitHub for example) #356

Closed aboimpinto closed 10 months ago

aboimpinto commented 10 months ago

Installed product versions

Description

What command should I run in the build server to create the report? I already have a finecodecoverage-settings.xml in the same folder as the solution.

Steps to recreate

Current behavior

Can only get the report when I run from VS2022

Expected behavior

Be able to create the full report in the build server and for that build the TestCoverage Report

tonyhallett commented 10 months ago

I have already stated that FCC does not run on a build server ( admittedly not as clear as I would have liked due to the mark up ) https://github.com/FortuneN/FineCodeCoverage/issues/354#issuecomment-1748899311

image

FCC hooks into the test explorer and is capable of generating run settings for you. FCC uses ReportGenerator to create the html report you see in our tool window.

Your alternative is outlined here https://learn.microsoft.com/en-us/visualstudio/test/configure-unit-tests-by-using-a-dot-runsettings-file?view=vs-2022#specify-a-run-settings-file-from-the-command-line and here https://github.com/danielpalme/ReportGenerator/wiki/Integration#github-actions

Be sure to use ResultsDirectory so you can find the cobertura file for ReportGenerator "reports". Note that FCC uses an earlier version or ReportGenerator and customize the results - but I expect that this should not be an issue.

aboimpinto commented 10 months ago

thanks ... I hope one day you will be able to implement this feature