How to generate and view code coverage reports in PhpStorm using PHPUnit and Xdebug

In this video, you'll learn how to generate code coverage reports, and how to display them directly in PhpStorm.

This video is part of our Laravel Package Training video course. In that course, you'll learn how to create both framework agnostic and Laravel specific packages. We'll also source dive some popular Spatie packages together, so you can pick up some tricks we apply there.

Here are some interesting resources you can check out after watching the video:

In the video you see me using "xdebug off" to turn Xdebug off. My bash function actually works a little bit different. Just execute "xdebug" to toggle Xdebug on and off.

Join 9,500+ smart developers

Get my monthly newsletter with what I learn from running Spatie, building Oh Dear, and maintaining 300+ open source packages. Practical takes on Laravel, PHP, and AI that you can actually use.

No spam. Unsubscribe anytime. You can also follow me on X.

Found something interesting to share? Submit a link to the community section.