PHPUNIT CODE COVERAGE STATISTICS BLANK?

Hi All,

 

I have a few IDE's working fine for my staff, but one is showing blank on all code coverage stats. The files are all listed in the coverage window, just no % beside any of them. The files wont show coverage coloring BUT the project file viewer does show % beside each file/folder which is weird? I have checked all interpreters and config files and I cont spot the issue. Any ideas on what to check? For PHPunit I am using boostrap, which is the same file run on other users without issue.

 

Thanks for any ideas

 

Preston

5 comments
Comment actions Permalink

Does this happen on every single project using PHPUnit?
Here's a simple project, does it happen there as well? https://www.dropbox.com/s/0egft6ghyglzkil/phpunit02.zip?dl=0

If it does, please restart PhpStorm, reproduce the issue and upload the IDE log somewhere.

0
Comment actions Permalink

Thanks Eugene ;)

 

The simple project you sent me does work and code coverage works as it should within that project. Any idea what setting in the IDE would stop the code coverage from working in our project? I do have code coverage exporting into a log , it's just in the IDE where I am not seeing the coverage. I have double checked directory settings etc and cant spot the issue. Again, I have the same config running on multiple machines without issue, just one of them is acting this way. I may just have to put them side-by-side and go screen by screen to try and solve it.

0
Comment actions Permalink

That sounds like a glitch - you might want to try to backup and remove .idea folder from that project and create PhpUnit test config again. And check if coverage is displayed correctly after that 

1
Comment actions Permalink

I have a kind of similar issue:

- All files are shown in the coverage tool window, but the "statistics, %" column is empty for all files and folders

- When opening the files in the editor, the coverage colouring beside the row numbers works fine for all files

I'm using a remote server to generate the coverage data, and my wild guess is that the editor is able to map the remote paths in the coverage xml to the local files, but the coverage tool window cannot, therefore it shows no statistics. But I cannot confirm it is an issue due to the remote coverage generation, since I cannot set up a suitable test environment on my local machine. For the same reason I couldn't validate the test project linked above.

Do you have any suggestions for me, or should i open a ticket, or is the statistics display something that is to be working only with local coverage data?

0
Comment actions Permalink

it's better to open a ticket so we could inspect IDE logs first.

0

Please sign in to leave a comment.