Warnings Failed to resolve 5 file path(s) in PHPUnit coverage coverage.xml report

Using Sonarcloud integration with Gitlab MR (merge-request)
Using PHPUNIT
–log-junit build/phpunit.xml
–coverage-clover build/coverage.xml \

coverage 100% but getting warning on 5 file path coverage report as below

Warnings Failed to resolve 5 file path(s) in PHPUnit coverage coverage.xml report. Nothing is imported related to file(s): /builds/PROJECT_NAME/apps/b2b/magento/app/autoload.php;/builds/PROJECT_NAME/apps/b2b/magento/app/bootstrap.php;/builds/PROJECT_NAME/apps/b2b/magento/app/etc/NonComposerComponentRegistration.php;/builds/PROJECT_NAME/apps/b2b/magento/app/etc/registration_globlist.php;/builds/PROJECT_NAME/apps/b2b/18f-magento/app/etc/vendor_path.php



Please help me with that file exclude from coverage report.
I try add into sonar-project.properties But still having issue.
sonar.coverage.exclusions=**/*NonComposerComponentRegistration.php,**/*autoload.php,app/etc/*

Thanks;

Hi @hprajapati,

Welcome to the community, and please excuse the late response.
Indeed, we should not process files of external reports which are not part of the analysis. To fix this behavior, I’ve created a ticket. Thanks for your contribution.

Best,
Nils

@Nils_Werner Thanks for creating ticket. Waiting for solution. Thanks again.

Best,
Harendra

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