Summer Sale! All accounts are 50% off this week.

automica's avatar

change code coverage generated file path

I've got codecoverage set up on my current project, and I run it generates a file when I run php vendor/bin/phpunit directly on the docker container.

    <logging>
        <log type="coverage-clover" target="logs/clover.xml"/>
    </logging>

this produces a file which looks a bit like this:

 <file name="/var/www/html/app/Common/Create.php">

Using PHPStorm to view this, I dont see any results, and this Is because PHPStorm is expecting a local file path eg

  <file name="/path/to/my/app/Common/Create.php">

Has anyone worked out a way to specify the base path or give map the file in PHPStorm so it to map /var/www/html to my local directory root?

0 likes
1 reply

Please or to participate in this conversation.