CoverletOutputFormat only accepts one format
See original GitHub issueHi!
Running as part of the dotnet test
command … as the documentation claims multiple output formats I wanted to try it out, added /p:CoverletOutputFormat=json,lcov,opencover,cobertura
.
Result:
MSBUILD : error MSB1006: Property is not valid.
Switch: lcov
Removed, lcov
, same result for opencover
, removed that, same result for cobertura
. So in short, no other format than json
actually works here.
Cheers!
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Dotnet Unit test with Coverlet- How to get coverage for ...
To merge the results across several projects, we generate two output formats, json and cobertura. See the parameter /p:CoverletOutputFormat .
Read more >Setting up code coverage with .Net, xUnit and TeamCity for ...
I have multiple unit test projects and they aren't in a test subfolder in the directory but they are in the solution. If...
Read more >C# Code Coverage with Azure DevOps
Here is a dotnet test command to run tests and get code coverage in Cobertura format to MyCoverage folder. dotnet test /p:CollectCoverage=true / ......
Read more >Coverlet does not generate single coverage report file for ...
Hi Team,. We are trying to generate and report Code Coverage to azure server using Coverlet and ReportGenerator. We are collecting coverage ...
Read more >Microsoft Azure Resource Manager client library for .NET
Since all management APIs go through the same endpoint, in order to interact with resources, only one top-level ArmClient has to be created....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Powershell doesn’t like all these msbuild /p args. To get comma separation to work I had to use the verbatim argument marker
--%
dotnet test --% /p:CollectCoverage=true /p:CoverletOutputFormat=\"opencover,lcov\"
Take a look at the README, this is how you escape the comma