How do I get SonarCloud to report on nUnit test coverage rather than MS Test

Resolution: In the prepare analysis part of the pipeline, under additional properties, we point to what reports we want I have just added the line “sonar.cs.nunit.reportsPaths=$(Agent.TempDirectory)/*.trx”

We followed this documentation [Coverage & Test Data] Generate Reports for C#, VB.net

This allowed us to collect code coverage data for nUnit.

2 Likes