-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Description
According to the docs:
- For global config (
codeception.yml):Allows you to specify a file (relative to the codeception.yml file) that holds some already pre‑defined values.
- For suite configs (
*.suite.yml):Allows you to specify a file (relative to *.suite.yml) that holds some already pre‑defined values.
- Config loading order also includes
*.dist.ymlconfigs.
What I tried
I wanted to reuse the root config files in a submodule by extending them:
Global config:
# /instance/codeception.dist.yml
extends: ../codeception.dist.ymlSuite config:
# /instance/tests/Acceptance.suite.dist.yml
extends: ../../tests/Acceptance.suite.dist.ymlWhat happens
-
Global
extends:- Array options (e.g.
modules) merge as expected. - Scalar options (single values) are not inherited — they reset to empty/default.
paramsdefined in the base file are ignored when loaded viaextends.
(This matches another report: Params source is ignored if yml file is extended #6799)
- Array options (e.g.
-
Suite
extends:- In
.suite.dist.ymlfiles theextendsoption is ignored completely.
- In
Expected
Based on the docs, extends should allow inheriting values from another config file (both global and suite level), so that shared configs can live in one place and be reused.
Currently this does not work reliably: global only partially works, suite configs .dist.yml not at all.
Metadata
Metadata
Assignees
Labels
No labels