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:
- Laravel Package Training
- Framework agnostic package skeleton
- Package skeleton for Laravel packages
- Installing Xdebug
- Viewing code coverage reports in PhpStorm
- A bash function to toggle Xdebug
- Unit conversions package
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.
What are your thoughts on "How to generate and view code coverage reports in PhpStorm using PHPUnit and Xdebug"?