We are currently using SonarQube DE 7.91.
Using Azure DevOps build pipeline we have the following Sonar config
- task: SonarSource.sonarqube.15B84CA1-B62F-4A2A-A403-89B77A063157.SonarQubePrepare@4
displayName: 'Prepare analysis on SonarQube'
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
inputs:
SonarQube: 'SonarQube'
projectKey: ''
projectName: ''
projectVersion: '$(Build.BuildNumber)'
extraProperties: |
sonar.branch.name=$(SONARBRANCHNAME)
sonar.cs.vstest.reportsPaths=$(Common.TestResultsDirectory)/*.trx
sonar.cs.opencover.reportsPaths=$(Build.SourcesDirectory)\tests\**\coverage.opencover.xml
sonar.testExecutionReportPaths=$(Build.SourcesDirectory)\src\ClientApp\sonar_test_report.xml
When we enable the testExecutionReportPaths
to the generic reports produced by our karma tests then we loose all the C# test executions, howevever the karma tests are included.
When i remove the testExecutionReportPaths
configuration the CSharp test executions are then enabled, however we loose the karma test executions.