From 2517e1b966113693e622ce2aa2f5355943a48b4a Mon Sep 17 00:00:00 2001 From: Alan Brault Date: Sat, 23 May 2026 09:08:41 -0400 Subject: [PATCH] fix: use TUnit built-in coverage for SonarCloud parsing Signed-off-by: Alan Brault --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 547edd6..50ae5c9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,7 +64,7 @@ jobs: /o:"visus" \ /d:sonar.token="$SONAR_TOKEN" \ /d:sonar.host.url="https://sonarcloud.io" \ - /d:sonar.cs.vscoveragexml.reportsPaths="**/TestResults/**/*.xml" \ + /d:sonar.cs.vscoveragexml.reportsPaths="**/TestResults/**/coverage.xml" \ /d:sonar.cs.vstest.reportsPaths="**/TestResults/**/*.trx" - name: Build @@ -72,10 +72,11 @@ jobs: - name: Run tests run: | - dotnet test -c Release --no-build --no-restore -- \ + dotnet test -c Release --no-build --no-restore \ --coverage \ + --coverage-output coverage.xml \ --coverage-output-format xml \ - --report-trx + -- --report-trx - name: Upload test results if: always()