the-dext / RunCoverletReport

A Visual Studio 2019 Extension to run Coverlet and Report Generator
MIT License
39 stars 15 forks source link

Additional coverlet parameters #9

Open stoberman37 opened 3 years ago

stoberman37 commented 3 years ago

Our build process has a number of additional parameters we pass to Coverlet when we run - things like ExcludeByAttribute, SkipAutoProps, etc. It would be great if there was a way to pass those in as well, so our local runs are closer to the build process.

the-dext commented 3 years ago

Interesting idea. I've never used those parameters, can you give me a copy of how your command looks and I'll think about how it might be done?

HT2207 commented 3 years ago

I also have the same issue using msbuild here I give example of command for commandline. dotnet test test.csproj --results-directory TestResults --filter "TestCategory=Category1" --logger trx;LogFileName=TestResults.trx /p:CollectCoverage=true /p:CoverletOutput=../../TestResults/coverage /p:CoverletOutputFormat=cobertura /p:Exclude=\"[Test],[Test2]\"

So how to pass the extra parameter when we run code coverage by VS extension Run Coverlet Report