Codeception / c3

Remote CodeCoverage for Codeception. Part of Codeception testing framework.
http://codeception.com
71 stars 46 forks source link

Probleme with pcov #60

Closed AllanFousse closed 3 years ago

AllanFousse commented 4 years ago

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,

Sharnw commented 4 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.

Naktibalda commented 3 years ago

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