Skip to content

How to get branch coverage using Microsoft.Testing.Extensions.CodeCoverage #5544

Answered by fhnaseer
groogiam asked this question in Q&A
Discussion options

You must be logged in to vote

Branch coverage is present only in cobertura format. You need to specify cobertura as --coverage-output-format command line argument to generate a cobertura report. To do so please run this command

dotnet run --project Tests -- --coverage --coverage-output-format cobertura --coverage-output coverage.cobertura.xml

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bradwilson
Comment options

Answer selected by Evangelink
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants