Must-share information (formatted with Markdown):
*** which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)**
Sonar Qube using Bitnami image on Azure.
*** what are you trying to achieve**
We want to publish our NUnit & CodeCoverage results using powershell to be invoked as Azure DevOps pipeline. Using SonarScanner.MSBuild.exe in powershell along with dotcover & nunit.
*** what have you tried so far to achieve this**
“begin” "/key:XXXX"
“/d:sonar.host.url=Azure VM url with SonarQube installed” "/d:sonar.login=key"
“/d:sonar.cs.dotcover.reportsPaths="TestResults\dotcover-results.html
”" "/d:sonar.cs.nunit.reportsPaths=
“TestResults\NUnit-results.xml`”"
We were able to get the results while deploying local instance of SonarQube. Although we are getting below messages when we run the Powershell script on AzureDevops agent. Although these files do exist.
Fetching code coverage report information from TFS…
Attempting to locate a test results (.trx) file…
Looking for TRX files in: Z:\agent2_work\12\TestResults, Z:\agent2_work\12\a\Artifacts\CC\TestResults
No test results files found
Did not find any binary coverage files in the expected location.
Falling back on locating coverage files in the agent temp directory.
Searching for coverage files in Z:\agent2_work_temp
No coverage files found in the agent temp directory.