Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devinweb/laravel-test-parallel
a command to run your tests simultaneously across multiple processes to significantly reduce the time required to run the entire test suite.
https://github.com/devinweb/laravel-test-parallel
devinweb laravel parallel tests
Last synced: about 1 month ago
JSON representation
a command to run your tests simultaneously across multiple processes to significantly reduce the time required to run the entire test suite.
- Host: GitHub
- URL: https://github.com/devinweb/laravel-test-parallel
- Owner: devinweb
- License: mit
- Created: 2021-02-26T11:50:05.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-04-19T20:31:30.000Z (over 1 year ago)
- Last Synced: 2024-07-07T05:22:57.769Z (6 months ago)
- Topics: devinweb, laravel, parallel, tests
- Language: PHP
- Homepage:
- Size: 114 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel parallel tests
As you may know laravel parallel testing is already available on [laravel v8.x](https://laravel.com/docs/8.x/testing#running-tests-in-parallel), 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](https://github.com/paratestphp/paratest) and implements the same logic that handle the testing command used in laravel, developed by [Nuno Maduro](https://github.com/nunomaduro).
## Requirement
This package requires
```json
"phpunit/phpunit": "^9.5.1"
```To update your phpunit package you can add this dev dependency on your `composer.json`
```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:
```shell
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
```shell
php artisan test:parallel -p6
```
For more options you can run
```shell
php artisan test:parallel --help
```## Phpunit.xml
Make sure to update all `` to `` in your **phpunit.xml** file.