The latest version of Xdebug changed the way how code coverage works. It now depends on a specific mode that has to be set within the configuration of XDebug.
Dockware delivers this mode in
debugand not in the required
It's still easy to enable code coverage for your project. Just follow these steps...
Make sure to enable XDebug either by using the environment variable or by using the makefile commands in the folder
You can always change the mode by exposing a new environment variable before your command. That means if you want to use code coverage for your PHPUnit tests, simply add the exposing of the correct
XDEBUG_MODEdirectly before your command.
XDEBUG_MODE=coverage php vendor/bin/phpunit
That's it! Your coverage reports are now generated if configured with your testing framework!
Last modified 1yr ago