Home

  • Generating PHPUnit code coverage for a Laravel project on Homestead

    November 2, 2022 by

    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… Read more

  • Refresh active Chrome tab on bufWrite

    November 14, 2019 by

    I’ve been working with Tailwind CSS in Laravel Blade templates the last few days and it didn’t take long to tire of flipping between Vim and the browser to refresh the page I’m editing. My first bright idea was throwing the page into an infinite refresh loop with That got annoying quick so I turned… Read more

View all posts