How to upload unit test coverage to an AutoConfig C++ project

We have a GitHub hosted C++ project using SonarQube Cloud in AutoConfig mode: so our CI does not run the SonarQube scanner.

We also generate unit test coverage via GitHub actions.

I have tried using the SonarSource/sonarqube-scan-action@v6 action to upload the coverage report, but it generates an error: ERROR You are running CI analysis while Automatic Analysis is enabled. Please consider disabling one or the other.

How can I upload the unit test coverage to SonarQube Cloud without having to revert to manual scanning?

1 Like

Hi,

Sorry, you can’t. If you need to include test coverage, you’ll need to disable automatic analysis and move the full analysis into your CI.

 
HTH,
Ann

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.