user3108575
user3108575

Reputation: 23

How to include nunit test results in sonarcube 4.5.1 c# plugin 3.3 sonar-project.properties file?

I see that sonarcube re-added nunit test results support since Nov 7 2014: http://docs.sonarqube.org/display/SONAR/C%23+Plugin

However, I did not find anything that showed how to do this in the sonar-project.properties file.

For example, see the one they provide on git hub here: https://github.com/SonarSource/sonar-examples/blob/master/projects/languages/csharp/sonar-project.properties

What nunit specific line should be put in this file to replace the "sonar.cs.vstest.reportsPaths=TestResults/*.trx" mstest line?

Thanks!

Upvotes: 2

Views: 4945

Answers (1)

ljubomir
ljubomir

Reputation: 1525

The newly added key for NUnit test reports can be found on the project c# settings page - under UNit Tests tab, and its value is:

sonar.cs.nunit.reportsPaths

Provided value should be the .xml output from the NUnit console runner.

Upvotes: 3

Related Questions