Skip to content

Commit

Permalink
SIANXSVC-1214: Use lcov for CodeClimate reports
Browse files Browse the repository at this point in the history
Even though the Code Coverage report is correct and other platforms like
GitLab do not have a problem understanding it, the CodeClimate reporter
struggles with double slashes that seem to be introduced by itself.

This is also tracked in an issue, which is open since three years with
no intent of fixing it. Therefore, I assume this is not going to be
closed soon.

codeclimate/test-reporter#458

As a workaround, we're now using the lcov format.
  • Loading branch information
nachtjasmin committed Mar 14, 2024
1 parent abaf195 commit e32f435
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
dotnet test
--no-restore
--collect:"XPlat Code Coverage"
/p:CoverletOutputFormat=cobertura
/p:CoverletOutputFormat=lcov
--logger trx
--results-directory "test-results"
--
Expand All @@ -39,4 +39,4 @@ jobs:
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageLocations: "test-results/**/coverage.cobertura.xml:cobertura"
coverageLocations: "test-results/**/coverage.info:lcov"

0 comments on commit e32f435

Please sign in to comment.