All Projects → tonicforhealth → behat-parallel-scenario

tonicforhealth / behat-parallel-scenario

Licence: other
No description, website, or topics provided.

Programming Languages

PHP
23972 projects - #3 most used programming language
Gherkin
971 projects

Install

Install via composer

$ composer require tonicforhealth/behat-parallel-scenario

Config

Load extenstion into config:

default:
    extensions:
        Tonic\Behat\ParallelScenarioExtension: ~

or

default:
    extensions:
        Tonic\Behat\ParallelScenarioExtension:
            profiles:
                - profile_name_for_worker_1
                - profile_name_for_worker_2
                - profile_name_for_worker_3
            options:
                skip:
                    - any-behat-option-for-skiping-in-worker

Mark scenarios with tags

  • run scenario in parallel
@parallel-scenario
  • wait all parallel scenarios are done
@parallel-wait
  • run examples in parallel
@parallel-examples

Run

$ bin/behat --parallel-process 2

When parameter is absent or equal to 1 then test will be run in usual mode

Code Climate

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].