task: SonarQubePrepare@5
scannerMode: ‘MSBuild’
sonar.cs.vstest.reportsPaths=$(Agent.TempDirectory)/.trx
sonar.language=c# sonar.cs.opencover.reportsPaths=$(Agent.TempDirectory)//coverage.opencover.xml
I need to get the code coverage result and unit test results from the main folder when integrated through the azure pipeline , try with the dotnetcorecli with cobertura method the results are not displaying.
- task: DotNetCoreCLI@2
inputs:
command: ‘test’
projects: ‘**/*test.csproj’
arguments: --configuration $(BuildConfiguration) --collect:“XPlat Code Coverage” – DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=cobertura,opencover
continueOnError: true