Issue With AzureDevOps Integration

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"
“/ 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.

Hi @skumar23 and welcome to the community !

I’m not sure of your request.

Do you still need trx / coverage files (provided by VSTest task) for your purpose ?

Otherwise if you are happy with the properties you provide and their results, you can simply ignore these messages as they are part of the automatic detection of “default” test files.


Hello Mickael,

I am already sharing those files as in settings below
“/d:sonar.cs.dotcover.reportsPaths= "TestResults\dotcover-results.html ”" "/d:sonar.cs.nunit.reportsPaths= “TestResults\NUnit-results.xml`”"

But still it somehow looking for trx files and not picking above files for analysis.