.NET provide several coverage reports

Must-share information (formatted with Markdown):
Sonarqube v8.4 enterprise with azure devops

  • what are you trying to achieve
    I have 2 test tasks which produce their own .trx and .coverage files, see below ( the .coverage files are inside D:\ADOAgent_work\623\TestResults\UT.PA.Tests\tfs19service_PTBLD-11_2022-11-22_12_25_44\In\PTBLD-11 and D:\ADOAgent_work\623\TestResults\DB.PostGres.Tests\tfs19service_PTBLD-11_2022-11-22_12_22_36\In\PTBLD-11 directories :

upload test coverage reports to sonarqube server

  • what have you tried so far to achieve this
    in Prepare analysis on SonarQube task I’ve configured path to trx and .coveragexml files:
sonar.cs.vstest.reportsPaths=$(Common.TestResultsDirectory)\**\*.trx
sonar.cs.vscoveragexml.reportsPaths=$(Common.TestResultsDirectory)\UT.PA.Tests\**\*.coveragexml,$(Common.TestResultsDirectory)\DB.PostGres.Tests\**\*.coveragexml

The outcome of Run Code Analysis step in pipeline is:
Property ‘sonar.cs.vstest.reportsPaths’ provided, skipping the search for TRX files in default folders…
Did not find any binary coverage files in the expected location.

How should I structure my sonar.cs.vstest.reportsPaths and sonar.cs.vscoveragexml.reportsPaths ?

Hi,

Your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

8.4 → 8.9.10 → 9.7.1 (last step optional)

You may find the Upgrade Guide and the LTS-to-LTS Upgrade Notes helpful. If you have questions about upgrading, feel free to open a new thread for that here.

If your error persists after upgrade, please come back to us.

I’ve upgraded today to latest version 9.7.1 enterprise, getting same results. Any other ideas on how I can fix this problem ?