Skip to content

How to get branch coverage in Sonar with MTPv2? #7104

@bart-vmware

Description

@bart-vmware

We're currently using Coverlet in VSTest mode, which writes coverage in OpenCover format. Sonar can read that and produce line/branch coverage. Sonar doesn't support Cobertura, but it does support the Microsoft XML format. When using that with MTPv2, I only get line coverage, but no branch coverage. Is that a limitation in Sonar, or does the XML file format not contain branch coverage information?

I can't find a free tool to convert from Cobertura to OpenCover format. Is there a way to get branch coverage in Sonar when using MTPv2?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions