From e32f43581d36152ededf2e3a230be77620b09038 Mon Sep 17 00:00:00 2001 From: Jasmin Oster Date: Thu, 14 Mar 2024 09:34:05 +0100 Subject: [PATCH] SIANXSVC-1214: Use lcov for CodeClimate reports 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. https://github.com/codeclimate/test-reporter/issues/458 As a workaround, we're now using the lcov format. --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b6b3423..316b0c3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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" -- @@ -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"