Skip to content
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

.env.behat not overwrite default .env values #85

Open
Krlinhos opened this issue Oct 9, 2019 · 1 comment
Open

.env.behat not overwrite default .env values #85

Krlinhos opened this issue Oct 9, 2019 · 1 comment

Comments

@Krlinhos
Copy link

Krlinhos commented Oct 9, 2019

Hello,

I have a project with a .env file and other .env.behat The problem is when I run the tests the values for variables are .env values instead of .env.behat I have realized that if I have a variable in .env.behat and not in .env this value is as expected, but if I have the variable in both files, the value always is from .env file

behat.yml:
default: extensions: Laracasts\Behat: env_path: .env.behat ...

.env:
VARIABLE_ONE=A

.env.behat:
VARIABLE_ONE=B VARIABLE_TWO=C

when I run the test VARIABLE_ONE worths A instead of B, and VARIABLE_TWO worths C

Someone has some idea??

Thanks!

@darin-sai
Copy link

I'm encountering this as well.

As a temporary workaround I'm running php artisan config:cache --env=behat prior to running vendor/bin/behat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants