Closed AllanFousse closed 3 years ago
Having the same issue.
Pcov and xdebug both work fine for unit tests.
For acceptance tests Pcov returns '0.00% (0/249955)' line coverage while xdebug actually works.
Edit:
I think much like other threads i have read that the issue comes down to not having explicitly set pcov.directory
Adding pcov.directory = /app
to php.ini worked in my case.
I can confirm that pcov.directory
setting is required for pcov code coverage to work, I just added it to Github Actions of this repository to make tests pass: https://github.com/Codeception/c3/pull/69
C3 doesn't seem to work with pcov, while everything works fine with xdebug.
Same php code, just the choice of pcov or xdebug in php.ini
Pcov and Xdebug works well for unit tests,