# Code coverage 0% for PHP project

**URL:** <https://community.sonarsource.com/t/code-coverage-0-for-php-project/64476>\
**Category:** SonarQube Cloud\
**Tags:** coverage, sonarqube-cloud\
**Created:** [June 8, 2022, 10:10am UTC](https://community.sonarsource.com/t/code-coverage-0-for-php-project/64476 "2022-06-08T10:10:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![palani](https://avatars.discourse-cdn.com/v4/letter/p/ed655f/32.png) [@palani](https://community.sonarsource.com/u/palani)\
**Post date:** [June 8, 2022, 10:10am UTC](https://community.sonarsource.com/t/code-coverage-0-for-php-project/64476/1 "2022-06-08T10:10:12Z")

</div>

Hi Chaps, recently we upgraded our app softwares from ubuntu 16.04 to 20.04, php 7.2 to 8.1 and symfony. 3.4 to 5.4. After that Sonar cloud doesn’t shows coverage part. Always it shows 0.0%. When i saw the sonarcloud dashboard, It shows 2 warnings on my desired branch. I attached here for your reference.

1 . Failed to resolve 140 file path(s) in PHPUnit tests junit.xml report. Nothing is imported related to file(s):

1. Failed to resolve 184 file path(s) in PHPUnit coverage clover.xml report. Nothing is imported related to file(s):

My sonarproject properties are,

sonar.host.url=https://sonarcloud.io  
sonar.organization=xxxx  
sonar.projectKey=xxxxx  
sonar.projectName=xxxx  
sonar.sources=src  
sonar.tests=tests  
sonar.exclusions= **/\*.js,** /DataFixtures/ **,** /Resources/ **,** /Repository/ **,** /PHPUnit/ **,tests/**  
sonar.cpd.exclusions= **/Controller/** , **/Entity/**  
sonar.language=php  
sonar.sourceEncoding=UTF-8

sonar.php.tests.reportPath=build/logs/junit.xml

sonar.php.coverage.reportPaths=build/logs/clover.xml.

 ![Screenshot 2022-06-08 at 3.39.21 PM](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/3X/e/d/ed94238481605f8bc626c996413d9558ca5f8aa6.png)

ALM used - Github Could any one help me on this? Thanks a lot

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [June 8, 2022, 11:48am UTC](https://community.sonarsource.com/t/code-coverage-0-for-php-project/64476/2 "2022-06-08T11:48:59Z")

</div>

Hey there.

If it was working before but changed with the upgrade, the best thing you could do would be compare a coverage report under the previous conditions to the coverage report that’s being produced now, and see if anything has changed (particularly around the file paths being reported)
