Skip to content

Commit d611f5c

Browse files
authored
fix: use TUnit built-in coverage for SonarCloud parsing (#244)
Signed-off-by: Alan Brault <alan.brault@visus.io>
1 parent 6f78a30 commit d611f5c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,18 +64,19 @@ jobs:
6464
/o:"visus" \
6565
/d:sonar.token="$SONAR_TOKEN" \
6666
/d:sonar.host.url="https://sonarcloud.io" \
67-
/d:sonar.cs.vscoveragexml.reportsPaths="**/TestResults/**/*.xml" \
67+
/d:sonar.cs.vscoveragexml.reportsPaths="**/TestResults/**/coverage.xml" \
6868
/d:sonar.cs.vstest.reportsPaths="**/TestResults/**/*.trx"
6969
7070
- name: Build
7171
run: dotnet build -c Release --no-restore
7272

7373
- name: Run tests
7474
run: |
75-
dotnet test -c Release --no-build --no-restore -- \
75+
dotnet test -c Release --no-build --no-restore \
7676
--coverage \
77+
--coverage-output coverage.xml \
7778
--coverage-output-format xml \
78-
--report-trx
79+
-- --report-trx
7980
8081
- name: Upload test results
8182
if: always()

0 commit comments

Comments
 (0)