CodeCoverage doesn't work

Hello,

We can’t seem to get CodeCoverage to work.

We are using PHP, Github, CircleCI.

The scanner is being run like this:
sonarcloud/scan

The coverage is being generated by phpunit and Sonar seems to be picking it up:

INFO: Importing /home/circleci/project/execution.xml
INFO: Importing /home/circleci/project/coverage.xml
INFO: Sensor PHP sensor [php] (done) | time=113494ms

How can we troubleshoot this?

Hello @vkulov , welcome to our community.

This is indeed strange as the logs seem to indicate that the coverage file was picked up correctly. Could you please confirm that the generated coverage file is not empty?

It’s actually worked fine once you merge it in the main branch.