Hi all,
I would like to use a custom config file for ct.
If I try to display application:get_all_env(myapp)
, it is however always empty.
I tried specifying the config file in 2 ways:
- In
rebar.config
as{ct, [{config, "config/test.config"}]}.
- From the cli as
rebar3 ct --config config/test.config
I made a minimal project so it’s easy to reproduce, if you anyone would help: GitHub - carlotm/cte
Notes:
- I start the application in the suite like this: cte/test/cte_SUITE.erl at 80ed9ad168464ab052960c0d075aabd2e97ca6b8 · carlotm/cte · GitHub
- What I’m using to check if the env is picked up is erlang display, here: cte/src/cte_app.erl at 80ed9ad168464ab052960c0d075aabd2e97ca6b8 · carlotm/cte · GitHub
Cheers!