2017 © Pedro Peláez
 

library parallel-unit-test

Methodology of tests for parallel execution of code

image

petrgrishin/parallel-unit-test

Methodology of tests for parallel execution of code

  • Wednesday, March 25, 2015
  • by petrgrishin
  • Repository
  • 3 Watchers
  • 6 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

parallel-unit-test

Methodology of tests for parallel execution of code, (*1)

Installation

Add a dependency and script to your project's composer.json:, (*2)

{
    "require": {
        "petrgrishin/parallel-unit-test": "dev-master"
    },
    "scripts": {
      "test:parallel": "/usr/bin/env php vendor/petrgrishin/parallel-unit-test/src/cli.php test:parallel ./home-path-for-tests"
    }
}

Create parallel test

<?php
class SimpleParallelTest extends \PHPUnit_Framework_TestCase{

    /**
     * @group before
     */
    public function testInit() {
        //One run before parallel tests
    }

    /**
     * @group parallel
     */
    public function test() {
        //Will be launched in three parallel streams
        $this->assertTrue(true);
    }
}

Run parallel test

composer test:parallel

The Versions

25/03 2015

dev-master

9999999-dev

Methodology of tests for parallel execution of code

  Sources   Download

MIT

The Requires

 

The Development Requires

by Petr Grishin