Hey there!
In this post, we are going to configure XDebug for test coverage in Laravel Framework v9.
First, go to xdebug wizard https://xdebug.org/wizard, copy your phpinfo() and paste into the wizard, follow the instructions.
To enable test coverage you must edit the php.ini file, then add the following line:
xdebug.mode = coverage
Finally, execute:
php artisan test --coverage
Enjoy it!
Top comments (0)