Behat / Symfony2Extension

Symfony2 extension for Behat
MIT License
393 stars 106 forks source link

[Question] Usage of Symfony parameters in extension config #144

Open anaelChardan opened 6 years ago

anaelChardan commented 6 years ago

Hi! I'm running this extension with Behat v.3.4.3 and I was wondering if it was possible to use symfony parameters for the extensions and not only the contexts, for example I would like to set the base_url of the MinkExtension from a parameter:

I've tested with '%%%%' and '%%'

extensions:
        Behat\ChainedStepsExtension: ~
        Behat\MinkExtension:
            default_session: symfony2
            javascript_session: selenium2
            show_cmd: chromium-browser %s
            sessions:
                symfony2:
                    symfony2: ~
                selenium2:
                    selenium2:
                        wd_host: '%%%%behat_selenium_url%%%%'
            base_url: '%%%%behat_url%%%%'
            files_path: 'tests/legacy/features/Context/fixtures/'
        Behat\Symfony2Extension:
            kernel:
                env: behat
                debug: false

Thank you in advance ;)