I am using sonarQube to analyze my code that in .net6. I've installed sonarScanner and run these 3 commands:
dotnet sonarscanner begin /k:"<sonar-project-key>"
/d:sonar.login="<sonar-token>"
/d:sonar.cs.dotcover.reportsPaths=dotCover.Output.html
dotnet build –no-incremental
dotnet dotcover test --dcReportType=HTML
dotnet sonarscanner end /d:sonar.login="<sonar-token>"
I wrote a lot of unit tests using nunit however the number of unit tests is 0
I tried to add /d:sonar.cs.nunit.reportsPaths="Nunit\Result.xml" but nothing happened
Can you please help to reveal the missing configuration?