-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
Description
What are you trying to achieve?
Let users know that Codeception 3 brings not only PHPUnit 8.x support, but also blazing-fast code coverage via krakjoe/pcov thanks to this bad boy sebastianbergmann/php-code-coverage#663
What do you get instead?
pcov
is not mentioned anywhere 😞
Details
The setup is so simple, even your grandma can do it:
- install
pcov
extension following these instructions - change defaults in your
php.ini
- disable
xdebug
by commenting out the linezend_extension=xdebug.so
- enable
pcov
by addingextension=pcov.so
andpcov.enabled = 1
- disable
Now, if you want code coverage, run vendor/bin/codecept --coverage-html
And if you need to debug some stuff, run php -d zend_extension=xdebug.so vendor/bin/codecept
This will help #1446, #4524, and also make lots of people really happy!
The running time of my tests with enabled code coverage went from 11 minutes down to 20 seconds.
llstarscreamll and TomasVotruba