I am working on this in PR https://github.com/owncloud/core/pull/37946/files
Here https://drone.owncloud.com/owncloud/core/26996/51/7 I fetch the owncloud/core
software and get all the unit test results into.
Then the sonarcloud docker image runs https://drone.owncloud.com/owncloud/core/26996/51/8
I do get a result, https://sonarcloud.io/dashboard?id=owncloud_core&pullRequest=37946 - but in the output of the drone sonarcloud run I see stuff like:
WARN: Failed to resolve 1 include/require statements like '../../../../3rdparty/autoload.php' from 'bin'
INFO: 1485/1485 source files have been analyzed
INFO: No PHPUnit test report provided (see 'sonar.php.tests.reportPath' property)
INFO: Analyzing PHPUnit coverage report: results/clover-phpunit-php7.2-mariadb10.2.xml
WARN: Could not resolve 5083 file paths in clover-phpunit-php7.2-mariadb10.2.xml, first unresolved path: /drone/src/config/config.php
But, for example, /drone/src/config/config.php
is there.
I tried defining SONAR_SCANNER_OPTS
to be -Xdebug
- I was hoping that would reveal the 5083 file paths that could not be resolved, and I would then get some clue about that. But there is not any more output than normal.
I was hoping to get a code coverage of about 65%, like previously calculated - but I am getting 50.7%. So I am hoping that the “5083 unresolved” will be part of the problem.
Any clues from anyone?