krakjoe / pcov

PCOV - CodeCoverage compatible driver for PHP
Other
697 stars 29 forks source link

PCOV and Webdriver #52

Open alb3ric opened 4 years ago

alb3ric commented 4 years ago

Hello,

I have a project with phpunit 6.5. I'm using the Krakjoe/pcov driver (pcov clobber). Everything work fine except for tests running with php-webdriver/webdriver.

Am I missing something ? When I was using xdebug code coverage I had to prepend code in the htaccess, I thought I didn't had to do so with PCOV but maybe I'm wrong.

Thanks in advance for your help

Best regards

hctom commented 3 years ago

I can confirm I have similar issues. I am running PHPUnit tests with chromium-webdriver. Everything works fine when using Xdebug for code coverage, but as soon as I switch over to PCOV, the webdriver connection fails with: Could not open connection: unknown error: DevToolsActivePort file doesn't exist.

So is there something we have to change to get PCOV working with a webdriver?