I am using Pest to test my laravel application with PhpStorm. I have also installed xdebug on my machine and i can confirm that by php -v. I can get test coverage if I run it in PhpStorm clicking on "run with coverage", but when I try to run ./vendor/bin/pest --coverage I do not get Pest console log. I have tried adding xdebug.mode=coverage to php.ini file but it doesn't seems to work. Not sure what am I doing wrong..
Okay, it finally worked! it seems that it only outputs the coverage in the console log when there is no failed tests.. something that should be mentioned in documentation. Thanks to @sinnbeck for directing me in the right direction
Ok did a bit of testing. It is done by phpstorm by adding the flag --coverage-clover ./path/to/output.xml. This dumps the coverage report to that file, even though phpunit does not output it :)
Anyways. If the issue is solved, you can close the thread by marking a best answer