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
Codeception 2.1.1 environment configs issue #2229
Comments
It worked without using the yml files in _envs, i just specified the envs i wanted to use in codeception.yml and both settings were accounted for. Still couldn't manage to solve the initial problem , but maybe there's a setting that i'm missing or haven't filled out properly. |
I didn't manage to reproduce it. My files:
running |
Confirmed as working in 2.1.2, using the new config syntax (docs should be updated),
|
In addition to this issue I want to ask about possibility of storing config of some Codeception modules in separate file outside VSC. e.g: I have a project and everybody have different urls to project on their local machines and I think it would be nice to set common config in functional.suite.yml:class_name: FunctionalTester
modules:
enabled:
- PhpBrowser
- Yii2
- REST
- ApiHelper
config:
Yii2:
configFile: 'codeception/config/functional.php'
REST:
depends: PhpBrowser personal config e.g project-name.yml:modules:
enabled:
- PhpBrowser
- REST
config:
PhpBrowser:
url: http://local.dev/v1/
REST:
url: http://local.dev/v1/
depends: PhpBrowser But it won't work because while |
Still got this problem.
I have additional configuration _envs\beta.yml:
And configuration _envs\mobile.yml:
By running: php codecept.phar run acceptance --env beta,mobile I got my tests launched with mobile resolution but on http://website.alpha.com/. What I see through debug, is that custom config files are merged with default config before merging together, that is why some configurations are overwritten |
@VoidWalker I believe you're still using old syntax as @oparoz already mentioned |
I am trying to run a test suite using configs from two environments (this is a feature implemented in 2.1 - http://codeception.com/docs/07-AdvancedUsage#Environments) and when I run bin/codecept suite --env env1,env2 it just runs full resolution on chrome, which is the default setting in codeception.yml. Here is the contents of env1 and env2:
env2:
env1:
env1.yml and env2.yml are correctly placed in the _envs forlder, and the path to this folder is specified in codeception.yml.
The yml of the suite I am trying to run is:
This is
codeception.yml
The text was updated successfully, but these errors were encountered: