Skip to content

#410 - "Improve the behat.yml configuration"

Mateusz Kowalewski requested to merge 410-improving-behat-configuration into master

The aim of this MR is to avoid commiting behat.yml with change url each time we update something in Selenium tests. Now, each one of us should create, in conf/ directory, the file named : behat.local.yml which is just a copy of behat.yml with our IPs and URLs specified, but is not commited to Version Control. Each time selenium is fired up, it copies this settings into behat.yml. As a result, we do not need to change it every time in behat.yml. Does that make sense now?

There is no possiblity to use environment variables in behat.yml as for example: base_url: 'http://%env(SELENIUM_BASE_URL)%' And it does not read any Symfony parameters, like some_behat_value: '%some_symfony_parameter%' because it has been reverted from behat repository after it was breaking some code in the extension: https://github.com/Behat/Symfony2Extension/issues/125

What do you need to do?

Just create new file, conf/behat.local.yml, with the contents copied from original behat.yml Change parameters base_url and wd_host to your IPs and we are ready to go.

Edited by Mateusz Kowalewski

Merge request reports