2017 © Pedro Peláez
 

library paraunit

paraunit

image

facile-it/paraunit

paraunit

  • Friday, June 1, 2018
  • by Fpanina
  • Repository
  • 25 Watchers
  • 66 Stars
  • 18,491 Installations
  • PHP
  • 6 Dependents
  • 2 Suggesters
  • 5 Forks
  • 2 Open issues
  • 52 Versions
  • 12 % Grown

The README.md

facile-it/paraunit

PHP Version Stable release Unstable release, (*1)

Build status Coverage Status, (*2)

Paraunit is a tool for faster executions of PHPUnit test suites. It makes this possible by launching multiple test in parallel with single PHPUnit processes., (*3)

Paraunit is developed using Symfony components., (*4)

Installation

To use this package, use Composer:, (*5)

  • from CLI: composer require --dev facile-it/paraunit
  • or, directly in your composer.json:
{
    "require-dev": {
        "facile-it/paraunit": "^1.3"
    }
}

Compatibility

You can use Paraunit with many versions of PHPUnit or Symfony, following this compatibility list:, (*6)

Paraunit version Compatible PHPUnit Version Compatible Symfony Version
2.0 (to be released) 10+ 4.4, 5, 6
1.3 9.3+ 4.4, 5, 6
1.2 9.3+ 3.4, 4, 5
1.1 9.1, 9.2 3.4, 4, 5
1.0.* 7, 8 3.4, 4, 5
0.12.* 6, 7 2.8, 3, 4

Usage

Paraunit starts as a Symfony console command, but it's provided through a bin launcher; you can run it like this:br/ (assuming your Composer's bin dir is vendor/bin), (*7)

vendor/bin/paraunit run

This command will launch all the tests in all your configured testsuites., (*8)

Collect test coverage

Paraunit is also able to collect the test coverage in parallel, like this:, (*9)

vendor/bin/paraunit coverage --html=./dir

It automatically uses the best coverage driver available: it tries to use Pcov if available (since it's the fastest), otherwise it uses Xdebug. If neither are available, it should always be able to use PHPDbg, which is bundled in PHP core, so it should be always present. It can produce coverage in the same formats that PHPUnit provides: HTML, Clover, XML, Crap4j, PHP, text file and text to console., (*10)

Documentation

For more details about Paraunit and its usage, see the documentation, (*11)

The Versions

19/06 2017

dev-gh-pages-source

dev-gh-pages-source

  Sources   Download