diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b5e7190..f95a060 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,7 +27,9 @@ jobs: # Optional command arguments to 'dotnet build' dotnetBuildArguments: ./src # Optional command arguments to 'dotnet test' - dotnetTestArguments: ./src + dotnetTestArguments: ./src --logger trx --collect:"XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover + # Optional extra command arguments the the SonarScanner 'begin' command + sonarBeginArguments: /d:sonar.cs.opencover.reportsPaths="**/TestResults/**/coverage.opencover.xml" -d:sonar.cs.vstest.reportsPaths="**/TestResults/*.trx" # The SonarQube server URL. For SonarCloud, skip this setting. sonarHostname: https://sonarcloud.io env: