This post assumes you’re familiar with Laravel’s Homestead VM. Problem You want to generate PHPUnit code coverage reports and you’re developing on Homestead VM. Solution Add a function to the Homestead aliases file function code_coverage() { cd code;xon;phpunit –coverage-html ./public/reports/tests;xoff }change to the code directory xon/xoff enable/disable xdebug Generated coverage reports are written to public/reports/tests …
Continue reading “Generating PHPUnit code coverage for a Laravel project on Homestead”