ikucheriavenko
9/12/2017 - 6:01 AM

Behat config

default:
    suites:
      WEB:
        paths: [%paths.base%/features/Web]
        contexts:
          - LoginContext
          - RegisterContext
          - IndexContext
          - FeatureContext
    formatters:
        html:
          output_path: %paths.base%/reports
        pretty: ~
    extensions:
        Laracasts\Behat:
            env_path: .env
        Behat\MinkExtension:
            base_url: http://dynamo.local"
            default_session: selenium2
            laravel: ~
            selenium2:
              browser: chrome
              wd_host: 127.0.0.1:4444/wd/hub
              capabilities:
                chrome:
                    switches:
                        - "--headless"
                        - "--disable-gpu"
        SensioLabs\Behat\PageObjectExtension:
              namespaces:
                page:
                  - Page
                element: [Element]
        emuse\BehatHTMLFormatter\BehatHTMLFormatterExtension:
                name: html
                renderer: Twig
                file_name: test
                print_args: true
                print_outp: true
                loop_break: true
    gherkin:
            cache: ~


web-dev:
    extensions:
      Behat\MinkExtension:
          base_url: https://datadynamo.local.zaraffasoft.com

api:
    suites:
      API:
        paths: [%paths.base%/features/API]
        contexts:
          - ApiContext
        filters:
          tags: ~@current&&~@skip
    extensions:
        Behat\MinkExtension:
            base_url: http://dynamo.local
            sessions:
              default:
                goutte: ~
        emuse\BehatHTMLFormatter\BehatHTMLFormatterExtension:
            name: html
            renderer: Twig
            file_name: api
            print_args: true
            print_outp: true
            loop_break: true