ptbfw / initializer
Installs: 72
Dependents: 0
Suggesters: 1
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:extension
pkg:composer/ptbfw/initializer
Requires
- php: >=5.4
 - behat/behat: 3.*
 - symfony/finder: 2.*
 
This package is not auto-updated.
Last update: 2020-08-21 17:29:15 UTC
README
Compatible with behat v3
Usage:
default:
    extensions:
      Ptbfw\Initializer\Extension:
            resetters:
                {servicename}:
                    type: {executer type}
                    {executer Options}
                {SecondServiceName}:
                    type: {executer type}
                    {executer Options}
Example behat.yml config:
default:
    extensions:
      Ptbfw\Initializer\Extension:
            resetters:
                test:
                  type: 'Executer'
                  commands:
                    - "ls"
                    - "whoami"
            local_service:
                type: 'mysql'
                host: 'localhost'
                user: 'behat'
                password: '1'
                database: 'behat'
                port: 3306
                <b>directory</b>: 'local'
                init_command: 'SET NAMES "UTF8"'
            local_service_api:
                type: 'mysql'
                host: 'localhost'
                user: 'behat2'
                password: '1'
                database: 'behatTwo'
                <b>directories</b>:
                    - 'local_service_api'
                    - 'local_service'
Types
Mysql
directory(ies) is relative from %features%/bootstrap/database/If directory start with `/` then path is treated as absolute. If both directory and directories are provided, directory is merged in directories