These are chat archives for Behat/Behat

24th
Oct 2016
talt001
@talt001
Oct 24 2016 16:55
I'm running through the guidebook at the moment. I've setup a new project a couple of times and I'm ready to move onto intermediate configurations. I cannot find a single reference as to where I am supposed to create the behat.yml file.
Chuk Shirley
@chukShirley
Oct 24 2016 17:03
I put mine in the project root
...and that seems to be standard practice
talt001
@talt001
Oct 24 2016 17:04
Interesting.
Thanks. That is what I'll do then.
Is there some way to generate the boilerplate or somewhere to grab it from?
Chuk Shirley
@chukShirley
Oct 24 2016 17:06
For behat.yml?
talt001
@talt001
Oct 24 2016 17:06
Yes.
Chuk Shirley
@chukShirley
Oct 24 2016 17:09
Not sure. I usually just build mine from scratch:
default:
    extensions:
        Behat\MinkExtension:
            base_url: http://my.app.dev
            sessions:
              default:
                goutte: ~
    suites:
        authentication:
            contexts:
                - 'Path\To\ErrorLoggingContext'
                - 'Behat\MinkExtension\Context\MinkContext'
                - 'Path\To\AuthenticationContext'
            paths:
                - 'features/web/authentication.feature'
        UserAdministration:
            contexts:
                - 'Path\To\UserAdmin\UserAdministrationContext'
            paths:
                - 'features/web/userAdministration.feature'
    formatters:
        pretty: true
Something like that
talt001
@talt001
Oct 24 2016 17:10
Thank you for the reference. This looks like its from further on in the configuration section of the guidebook, but I should need it this afternoon.
Ciaran McNulty
@ciaranmcnulty
Oct 24 2016 17:27
Yes standard is to put it in project root. It actually is searched for in the current working directory when you run behat