We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not sure if this is the best place to ask but...
I'm looking to move my PHPUnit coverage reports to pcov from phpdbg to get around some issue with the latter not covering case statements.
case
When using xdebug or phpdbg I get 100% coverage on both my src and tests folders. When I use pcov I get 0% for tests.
src
tests
My phpunit.xml file contains:
<filter> <whitelist processUncoveredFilesFromWhitelist="false"> <directory suffix=".php">src</directory> <directory suffix=".php">tests/Integration</directory> <directory suffix=".php">tests/Unit</directory> </whitelist> </filter> <logging> <log type="coverage-html" target="build/coverage"/> </logging>
tests in all cases are run with ./vendor/bin/phpunit.
./vendor/bin/phpunit
Am I missing something?
The text was updated successfully, but these errors were encountered:
You need to set pcov.directory (probably to the current working directory by the sound of it).
Sorry, something went wrong.
yep. For anyone else, the solution for the above phpunit.xml is:
php -d extension=pcov.so -d pcov.enabled=1 -d pcov.directory=./ ./vendor/bin/phpunit
No branches or pull requests
Not sure if this is the best place to ask but...
I'm looking to move my PHPUnit coverage reports to pcov from phpdbg to get around some issue with the latter not covering
case
statements.When using xdebug or phpdbg I get 100% coverage on both my
src
andtests
folders. When I use pcov I get 0% for tests.My phpunit.xml file contains:
tests in all cases are run with
./vendor/bin/phpunit
.Am I missing something?
The text was updated successfully, but these errors were encountered: