-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow setting symfony env per-suite #131
Comments
I second this, as I had similar problem, and resorted to using different profiles rather than suites as they allow setting kernel env. having this option at the suite level would make sense. |
Yep, agree with this as well 👍 😉 |
any news on this? How are you running your behat tests with |
@OskarStark No idea with dotenv |
@OskarStark @ciaranmcnulty I made it work using this configuration for Symfony2Extension: default:
extensions:
Behat\Symfony2Extension:
kernel:
bootstrap: 'config/bootstrap.php' # used to load the dotenv configuration in replacement of app/autoload.php
env: 'test' # does not seems to work as everything is manager by APP_ENV now
debug: 'true'
path: 'src/Kernel.php' # previously was AppKernel.php
class: 'App\Kernel' # previously was `AppKernel` and by running:
|
Currently I'm using a 2-layer approach:
It's currently not possible (I think) to arrange these in suites because the symfony env is set at the extension level.
It'd be great to be able to set this at the suite level instead / as well
The text was updated successfully, but these errors were encountered: