I proceed with documentation: https://docs.sonarqube.org/latest/analysis/coverage/ and pass that settings in sonar-project.properties
file
php.sonar.php.tests.reportPath=coverage-result.xml
php.sonar.php.coverage.reportPaths=execution-result.xml
When I run scanner I get:
INFO: Analyzing PHPUnit test report: execution-result.xml
INFO: Analyzing PHPUnit coverage report: coverage-result.xml
so I don’t have any warnings. But on main page of SonarQube I don’t have something similar like here:
on right bottom corner: Failures, Errors, Tests, Execution Time.
Did I doing something wrong, or I have to search those results something else place?
EDIT:
I used that PHPUnit documentation: https://phpunit.readthedocs.io/en/9.3/textui.html
vendor/bin/phpunit --configuration ./phpunit.xml --coverage-clover=coverage-result.xml --log-junit=execution-result.xml