question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CoverletOutputFormat only accepts one format

See original GitHub issue

Hi!

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:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

28reactions
gforcegcommented, Sep 19, 2018

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\"

7reactions
tonerdocommented, Aug 13, 2018

Take a look at the README, this is how you escape the comma

dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=\"opencover,lcov\"
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found