We’re using Azure DevOps to publish C# code coverage to SonarCloud. This has been working brilliantly across most of our solutions. However, we’re trying to set up a new solution at the moment and can’t get SonarCloud to show coverage data.
We are producing coverage data using Coverlet and formatted as opencover reports which seem correct.
I can see that the analyzer is parsing the coverage files but it doesn’t seem to display anything in the quality gate.
Is there any way to find out what is happening to this coverage data after being parsed? Where is it being dropped/why?
INFO: Sensor C# Tests Coverage Report Import [csharp]
INFO: Parsing the OpenCover report D:\a\1\.\s\REDACTED\coverage.opencover.xml
INFO: Adding this code coverage report to the cache for later reuse: D:\a\1\.\s\REDACTED\coverage.opencover.xml
INFO: Parsing the OpenCover report D:\a\1\.\TestResults\VssAdministrator_WIN-V1CHC7Q8JSO_2021-11-10_15_50_55\In\WIN-V1CHC7Q8JSO\coverage.opencover.xml
INFO: Adding this code coverage report to the cache for later reuse: D:\a\1\.\TestResults\VssAdministrator_WIN-V1CHC7Q8JSO_2021-11-10_15_50_55\In\WIN-V1CHC7Q8JSO\coverage.opencover.xml
INFO: Parsing the OpenCover report D:\a\1\.\s\REDACTED\coverage.opencover.xml
INFO: Adding this code coverage report to the cache for later reuse: D:\a\1\.\s\REDACTED\coverage.opencover.xml
INFO: Parsing the OpenCover report D:\a\1\.\TestResults\VssAdministrator_WIN-V1CHC7Q8JSO_2021-11-10_15_50_58\In\WIN-V1CHC7Q8JSO\coverage.opencover.xml
INFO: Adding this code coverage report to the cache for later reuse: D:\a\1\.\TestResults\VssAdministrator_WIN-V1CHC7Q8JSO_2021-11-10_15_50_58\In\WIN-V1CHC7Q8JSO\coverage.opencover.xml
INFO: Parsing the OpenCover report D:\a\1\.\s\REDACTED\coverage.opencover.xml
INFO: Adding this code coverage report to the cache for later reuse: D:\a\1\.\s\REDACTED\coverage.opencover.xml
INFO: Parsing the OpenCover report D:\a\1\.\TestResults\e3843b2e-c16a-4bae-88da-10c46fb40572\coverage.opencover.xml
INFO: Adding this code coverage report to the cache for later reuse: D:\a\1\.\TestResults\e3843b2e-c16a-4bae-88da-10c46fb40572\coverage.opencover.xml
INFO: Parsing the OpenCover report D:\a\1\.\TestResults\35441787-1dd8-4ec1-903c-42ae842e2b75\coverage.opencover.xml
INFO: Adding this code coverage report to the cache for later reuse: D:\a\1\.\TestResults\35441787-1dd8-4ec1-903c-42ae842e2b75\coverage.opencover.xml
INFO: Parsing the OpenCover report D:\a\1\.\TestResults\b18c0118-e4d3-48c9-948a-d4f741fb49d9\coverage.opencover.xml
INFO: Adding this code coverage report to the cache for later reuse: D:\a\1\.\TestResults\b18c0118-e4d3-48c9-948a-d4f741fb49d9\coverage.opencover.xml
INFO: Parsing the OpenCover report D:\a\1\.\s\REDACTED\coverage.opencover.xml
INFO: Adding this code coverage report to the cache for later reuse: D:\a\1\.\s\REDACTED\coverage.opencover.xml
INFO: Parsing the OpenCover report D:\a\1\.\s\REDACTED\coverage.opencover.xml
INFO: Adding this code coverage report to the cache for later reuse: D:\a\1\.\s\REDACTED\coverage.opencover.xml
INFO: Parsing the OpenCover report D:\a\1\.\TestResults\4d5869e6-9904-4309-ab91-7daaf1936161\coverage.opencover.xml
INFO: Adding this code coverage report to the cache for later reuse: D:\a\1\.\TestResults\4d5869e6-9904-4309-ab91-7daaf1936161\coverage.opencover.xml
INFO: Parsing the OpenCover report D:\a\1\.\TestResults\VssAdministrator_WIN-V1CHC7Q8JSO_2021-11-10_15_51_05\In\WIN-V1CHC7Q8JSO\coverage.opencover.xml
INFO: Adding this code coverage report to the cache for later reuse: D:\a\1\.\TestResults\VssAdministrator_WIN-V1CHC7Q8JSO_2021-11-10_15_51_05\In\WIN-V1CHC7Q8JSO\coverage.opencover.xml
INFO: Parsing the OpenCover report D:\a\1\.\TestResults\9d0bbf33-af1c-4cef-ade8-1cc3f10fef48\coverage.opencover.xml
INFO: Adding this code coverage report to the cache for later reuse: D:\a\1\.\TestResults\9d0bbf33-af1c-4cef-ade8-1cc3f10fef48\coverage.opencover.xml
INFO: Coverage Report Statistics: 94 files, 82 main files, 82 main files with coverage, 12 test files, 0 project excluded files, 0 other language files.