Generic Report Execution with CSharp TRX Files

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.

Hi,

Are you using the Scanner for MSBuild ?

Thanks.

Mickaël

Hi,

We are using the SonarQube plugin for Azure DevOps which I believe is using the MSBuild scanner.

Can we please get a response to this?

This problem still persists.
Using SonarScanner .NET via dotnet sonarscanner.

I add generic test execution files via sonar.testExecutionReportPaths, then I see the JS results but the C# results added via sonar.cs.vstest.reportsPaths are missing.
If I remove the sonar.testExecutionReportPaths the C# results are reported.

Sonar: 9.3 (build 51899)
dotnet-sonarscanner: 5.5.1