You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to override a config option from the command line in a suite.
In my case actually the base-URL for the WebDriver.
What do you get instead?
codecept config:validate -o 'foo: bar'
root@de43a6b7a5fc:/project/tests# codecept config:validate -o 'foo: bar'
Validating global config... foo: bar
Ok
------------------------------
Codeception Config:
Array
(
foo => bar
actor => Test
[...]
The above works, I can see foo: bar in the output, it's also shown in the first line.
From my latest tests it looks like the suite config overrides the options from the command line.
If I move the relevant part from suite-config to global-config, I can use the command line options.
Example:
codecept run -o "modules: config: WebDriver: url: http://example.com" -- e2e
What are you trying to achieve?
I want to override a config option from the command line in a suite.
In my case actually the base-URL for the WebDriver.
What do you get instead?
The above works, I can see foo: bar in the output, it's also shown in the first line.
No override is applied, I tried several different formats eg.
modules: config: ...
,env: chrome: modules: ...
Details
Related issues:
The text was updated successfully, but these errors were encountered: