We have CI running in drone from GitHub. There are multiple drone pipelines running PHP unit tests. Each pipeline runs unit tests with some environment combination - e.g. different backend database, different storage like local filesystem, samba… I am trying to get unit test code coverage working with SonarCloud.
Example drone log output https://drone.owncloud.com/owncloud/core/26880/35/10
As each pipeline finishes, it uses docker image sonarsource/sonar-scanner-cli to do its thing and upload the clover XML coverage information.
On GitHub lots of posts keep coming for each individual unit test result. In https://sonarcloud.io/dashboard?id=owncloud_core&pullRequest=37931 it does report a coverage result. But that seems to be just the individual coverage from the latest unit test pipeline that finished.
I would like a total coverage report that shows the total lines covered (by any unit test run). e.g. an individual unit test run might cover 50%, but a slightly different 50% to another test run. Combined, they might provide 60% coverage.
How can I get SonarCloud to “wait” until it has received all the clover XML coverage reports, and then do a single analysis and report the combined coverage?