Integrate SonarQube with your AI agent, scan for secrets and dependency risks, and explore and manage issues—all from the command line.
Start using SonarQube CLI
It would be very nice if SonarQube would directly support Cobertura XML for C#. I don’t see, why that’s not the case, because Cobertura is supported for other languages.
Reasoning:
dotnet test offers three formats
coverage, which is not recommended when not building on windows
xml which seems not to support partial branch coverage
cobertura which seems to be the best format considering coverage features and cross-platform support
So my natural choice was to use 3, but I can use that only if I add additional conversion with https://github.com/danielpalme/ReportGenerator
Hey @carlossus, Cobertura is supported for C# starting from SonarQube Server 2026.3 with the sonar.cs.cobertura.reportsPaths parameter, so you just have to update and you’ll be able to use it.