PHPackages                             tonysm/laravel-paratest - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. tonysm/laravel-paratest

Abandoned → [laravel/framework](/?search=laravel%2Fframework)Library

tonysm/laravel-paratest
=======================

Run your Laravel feature tests in parallel without race conditions.

0.0.2(5y ago)145.4k↓100%5[2 issues](https://github.com/tonysm/laravel-paratest/issues)MITPHPPHP ^7.3|^8.0

Since Oct 27Pushed 5y agoCompare

[ Source](https://github.com/tonysm/laravel-paratest)[ Packagist](https://packagist.org/packages/tonysm/laravel-paratest)[ Docs](https://github.com/tonysm/laravel-paratest)[ RSS](/packages/tonysm-laravel-paratest/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

Parallel Integration Tests in Laravel
=====================================

[](#parallel-integration-tests-in-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ba84d3f883830cc7d55b8705ecc214593051de5ad9b6143655670ee46d44b192/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f6e79736d2f6c61726176656c2d70617261746573742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tonysm/laravel-paratest)[![Build Status](https://camo.githubusercontent.com/f763f2fc801f5589290b70951308a362d2edba67366785df803ffd1dc446dfae/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f746f6e79736d2f6c61726176656c2d70617261746573742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/tonysm/laravel-paratest)[![Quality Score](https://camo.githubusercontent.com/3a975c62fa6843557d846a84db16f928b4c83311d5ceb9494e9e8987286b8c0b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f746f6e79736d2f6c61726176656c2d70617261746573742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/tonysm/laravel-paratest)[![Total Downloads](https://camo.githubusercontent.com/670d79fd653d53ec360f2bd77702f774ba69e66c653f484fa219f3b79cab3662/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f6e79736d2f6c61726176656c2d70617261746573742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tonysm/laravel-paratest)

This package ships with some helper Artisan commands and testing traits to allow you running your Feature Tests in parallel using [Paratest](https://github.com/paratestphp/paratest) against a MySQL or PostgreSQL database without conflicts.

The package will create 1 database for each testing process you have running to avoid race conditions when your Feature Test try to run a test creating some fixtures while another test in a another process runs the `artisan migrate:fresh`.

You also don't have to worry about creating the test databases. They will be created when you run your tests. There's is even a helper runner to clean up the test databases afterwards.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require tonysm/laravel-paratest --dev
```

Usage
-----

[](#usage)

**Attention: You will need a user with rights to create databases.**

Instead of using Laravel's *RefreshDatabase* trait, use the package one:

```
