Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A parallel wrapper for PHPUnit

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 composer.json
Octocat-spinner-32 test.php
README.md

paraunit

A parallel wrapper for PHPUnit. Run this file instead of PHPUnit and you can pass in the number of parallel PHPUnit processes you want to use on your tests.

Tests are found by grepping files for test*() and run in individual processes, up to the max concurrency you set, until all tests are finished. This means tests must be logically independent!

Usage

Install using composer. Then do this:

vendor/bin/paraunit (-pPROCESSES|--processes=PROCESSES) --path=TEST_PATH/TEST_GLOB --phpunit=PATH/TO/PHPUNIT

Todo

  • Handle more kinds of output from phpunit
  • Try to use PHPUnit to get file list / test name list
  • See if anything can be done about test dependencies
Something went wrong with that request. Please try again.