Skip to content

Commit 0741f9f

Browse files
committed
Try alternate coverage format
1 parent d7d5dc3 commit 0741f9f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/Steeltoe.All.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
- name: Generate code coverage report
119119
uses: danielpalme/ReportGenerator-GitHub-Action@v5
120120
with:
121-
reports: '**/*.cobertura.xml'
121+
reports: '**/*.coverage'
122122
targetdir: 'coveragereport'
123123
reporttypes: 'MarkdownAssembliesSummary;MarkdownSummaryGithub'
124124
filefilters: '-*.g.cs'

.github/workflows/sonarcube.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
7575
run: >-
7676
dotnet sonarscanner begin /k:"SteeltoeOSS_steeltoe" /o:"steeltoeoss" /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
77-
/d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths=**/*.cobertura.xml
77+
/d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths=**/*.coverage
7878
7979
- name: Build solution
8080
run: dotnet build ${{ env.SOLUTION_FILE }} --no-restore --configuration Release --verbosity minimal

coverage.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
CAUTION: Microsoft Testing Platform uses different defaults, see https://learn.microsoft.com/en-us/dotnet/core/testing/microsoft-testing-platform-extensions-code-coverage.
66
-->
77
<!-- TODO: Try alternate output format that is compatible with Sonar -->
8-
<Format>cobertura</Format>
8+
<!--<Format>cobertura</Format>-->
99
<!-- TODO: Turn off DeterministicReport for Sonar if still incompatible -->
1010
<DeterministicReport>true</DeterministicReport>
1111
<CodeCoverage>

0 commit comments

Comments
 (0)