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 ?