H
H
HellWalk2020-02-03 11:15:51
Codeception
HellWalk, 2020-02-03 11:15:51

How to specify .env.test and .env.test.local at the same time?

I think everyone knows the system for loading configs, when it is enough to specify .env, and the system itself will check for the presence of .env.local, and if it exists, it will load the local version.

In the codeception settings, you have to specify both at once:

params:
    - .env.test
    - .env.test.local


Everything works locally, but when running tests on preprod, where, of course, .env.test.local is missing, codeception swears at its absence:

In ParamsLoader.php line 27:
                                                             
  Params file /builds/git/courier/.env.test.local not found


How can I tell it to load .env.test.local only when it exists?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question