Sonar has been working great in our project for a few months already, but it was time that we tried to add coverage information! However, we are having some issues in making it get the right numbers, as both in PRs and main analysis, the coverage is marked at 0%, even when it is able to find the tests.
The project is actually part of a monorepo, where we are already analysing Java and Typescript code without any issues. I also was able to set up sonarcloud for other projects (single repo) and while I am trying to follow the same recipe, I must be missing something!
It sure looks like SonarCloud is accurately representing the information coming from your coverage report – in that the coverage report only seems to show coverage on test files rather than source files.
SonarCloud only reads the information from coverage reports – it isn’t involved in their production. You will probably need to go back to your coverage tool and make sure the report is being generated correctly / with the expected coverage data.