Skip to content

Instantly share code, notes, and snippets.

James Hall MrRio

Block or report user

Report or block MrRio

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@MrRio
MrRio / README.md
Last active Aug 5, 2019
Speed up your phpunit code coverage output in Laravel
View README.md

Speed up your phpunit code coverage output in Laravel.

Your coverage reports are slowed down by xdebug tracing within Laravel and packages you depend on, despite them not being in your final coverage report. This moves the filtering from phpunit into xdebug itself.

Before: Time: 5.33 minutes, Memory: 10.00 MB

After: Time: 1.5 minutes, Memory: 10.00 MB

./vendor/bin/phpunit --coverage-html=results/coverage

@MrRio
MrRio / TestCase.php
Created Aug 5, 2019
Speed up your phpunit code coverage output in Laravel.
View TestCase.php
<?php
namespace Tests;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
abstract class TestCase extends BaseTestCase
{
use CreatesApplication;
View .travis.yml
# Supercharge your Travis builds with yarn
# Commit your lock file locally, and change your travis to this
language: node_js
node_js:
- "4"
install:
- npm -g install yarn
- yarn
cache:
directories:
View gist:57055
<?php
echo "Some code";
?>
You can’t perform that action at this time.