Skip to content

a command to run your tests simultaneously across multiple processes to significantly reduce the time required to run the entire test suite.

License

Notifications You must be signed in to change notification settings

devinweb/laravel-test-parallel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel parallel tests

StyleCI Shield Total Downloads Latest Stable Version License

As you may know laravel parallel testing is already available on laravel v8.x, but this feature not exitst on the old versions 5.x, 6.x and 7.x, So this package is here to fix this gap and enjoy the parallel testing.

It's based on brianium/paratest and implements the same logic that handle the testing command used in laravel, developed by Nuno Maduro.

Requirement

This package requires

"phpunit/phpunit": "^9.5.1"

To update your phpunit package you can add this dev dependency on your composer.json

{
    ...

    "require-dev": {
       ...,
       "phpunit/phpunit": "^9.5.1"
   },

   ...
}

Then remove your composer.lock file and tell the composer to install all the dependencies using composer install.

Installation

You can install the package via composer:

composer require devinweb/laravel-test-parallel

This package will register itself automatically if your Laravel version 5.5+, through package auto-discovery.

Usage

To enjoy with the testing parallel run this command

php artisan test:parallel -p6

For more options you can run

php artisan test:parallel --help

Phpunit.xml

Make sure to update all <env .../> to <server .../> in your phpunit.xml file.

About

a command to run your tests simultaneously across multiple processes to significantly reduce the time required to run the entire test suite.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages