Hi,
I Use Sonar(Cloud) with PHPUnit for a OSS project.
- PHPUnit config:https://github.com/llaumgui/JunitXml/blob/develop/phpunit.xml.dist
- sonar-project.properties: https://github.com/llaumgui/JunitXml/blob/develop/sonar-project.properties
- PHPUnit launched by GitHub Actions with:
vendor/bin/phpunit --configuration phpunit.xml.dist
I build my code coverage in ./build/reports/phpunit.coverage.xml but when Sonar read the XML file, he said :
2020-06-16T06:20:03.5434083Z INFO: Analyzing PHPUnit test report: ./build/reports/phpunit.xml
2020-06-16T06:20:03.5565845Z INFO: Analyzing PHPUnit coverage report: ./build/reports/phpunit.coverage.xml
2020-06-16T06:20:03.5624504Z WARN: Could not resolve 5 file paths in phpunit.coverage.xml, first unresolved path: /home/runner/work/JunitXml/JunitXml/src/JunitXmlTestCase.php
But the path is correct and availaible on GitHub Actions.
Any ideas ?
Best regards.
