Download the PHP package shvetsgroup/parallelrunner without Composer
On this page you can find all versions of the php package shvetsgroup/parallelrunner. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download shvetsgroup/parallelrunner
More information about shvetsgroup/parallelrunner
Files in shvetsgroup/parallelrunner
Package parallelrunner
Short Description Parallel runner extension for Behat
License MIT
Homepage http://github.com/shvetsgroup/
Informations about the package parallelrunner
Behat Parallel Runner
Installation
This extension requires:
- Behat 2.4+
Through Composer
-
Set dependencies in your composer.json:
- Install/update your vendors:
Configuration
As a bare minimum requirement, activate extension in your behat.yml:
Separate environments for test processes
In certain cases, it's useful to run testing processes in separate environments (e.g. if test results of one test could break other test's data). For this purpose, you should define behat profiles in your configuration file and pass their names to "profile" parameter of the extension like this:
Now, let's say you've run the test with 4 parallel processes. The first process will be launched with "environment1" profile, second with "environment2", and the rest with the default profile (or profile, which was passed in --config option).
Running tests in parallel by default
If you want all of your tests to run in parallel, just specify default number of parallel processes in your configuration file. Note: this number can be overridden by --parallel option.
Usage
Use "--parallel" or "-l" parameter to specify number of concurrent test processes. For example:
Troubleshooting
-
If you're using Selenium, make sure it's launched in Hub mode to get all the benefits of parallelism (http://docs.seleniumhq.org/docs/07_selenium_grid.jsp).
- This extension does not work with features which have closures as definitions (you'll get "Serialization of 'Closure' is not allowed" errors most likely).
All versions of parallelrunner with dependencies
ext-pcntl Version *
behat/behat Version >3.0
symfony/process Version >=2.2.0