PHPackages                             muhmdraouf/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. muhmdraouf/laravel-paratest

ActiveLibrary

muhmdraouf/laravel-paratest
===========================

Run your Laravel feature tests in parallel without race conditions.

0.0.3(5y ago)08.4kMITPHPPHP ^7.3|^8.0

Since Oct 27Pushed 5y agoCompare

[ Source](https://github.com/MuhmdRaouf/laravel-paratest)[ Packagist](https://packagist.org/packages/muhmdraouf/laravel-paratest)[ Docs](https://github.com/MuhmdRaouf/laravel-paratest)[ RSS](/packages/muhmdraouf-laravel-paratest/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

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

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/f2d9104fb2d5d09da7817fd05fed5f566b47e29c7e70c8afbd8da648a0d877a4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d75686d6472616f75662f6c61726176656c2d70617261746573743f7374796c653d666c61742d737175617265266c6162656c3d5061636b6167697374)](https://packagist.org/packages/muhmdraouf/laravel-paratest)[![Build Status](https://camo.githubusercontent.com/2944cac33a7de63cd15f1b254b9fbe97820cbf09bb0a5f26e9e0313e11fd5b48/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f636f6d2f6d75686d6472616f75662f6c61726176656c2d70617261746573742f6d61737465723f7374796c653d666c61742d737175617265266c6162656c3d4275696c64)](https://travis-ci.org/muhmdraouf/laravel-paratest)[![Quality Score](https://camo.githubusercontent.com/0073b5c32c19d3e34da9cc47caa4420ad91abecaf737fed4c5b55a761e802e17/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f4d75686d6452616f75662f6c61726176656c2d70617261746573742f6d61737465723f7374796c653d666c61742d737175617265266c6162656c3d436f64652532305175616c697479)](https://scrutinizer-ci.com/g/muhmdraouf/laravel-paratest)[![Total Downloads](https://camo.githubusercontent.com/05e778091fc3a66a720e530754b42c2d039d08b15493fbe6d7aaa3b35cdeb8d7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d75686d6472616f75662f6c61726176656c2d70617261746573743f7374796c653d666c61742d737175617265266c6162656c3d446f776e6c6f616473)](https://packagist.org/packages/muhmdraouf/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 muhmdraouf/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:

```
