-
-
Notifications
You must be signed in to change notification settings - Fork 240
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
Setting common tests config file not working #65
Comments
Like you did. Please post the makefile. |
PROJECT = roadsigns ERLC_OPTS ?= -Werror +debug_info CT_SUITES = test CT_OPTS = -config debug.config DEPS = cowboy emysql jiffy lager erlcloud cr: cct: rd: app include erlang.mk |
Yeah it should work. Is your config file in the same directory as the makefile though? You gotta say tests/debug.config if it's in there. |
Yes they are in the same directory. The config has param "roadsigns" in there which I try getting in init_per_group/2 with |
I think the -config option is for specifying the sys.config file. Can you try with -ct_config instead? |
Yeah just tried it, didn't work either. I must be messing up somewhere else. I'm loading the config just so I can set it as the app env in init_per_group/2. Perhaps I'm going about that wrong. Here is a snippet of the config: |
Well I don't really know, never used that myself. You'll have better luck on erlang-questions. |
Ok, I'm on it. Will post what I find here. Thanks for the help @essen |
It seems the default config from the app takes precedence over whatever config is set via CT_OPTS. I'm also getting noproc errors for functions that run just fine in the release. |
Finally got it to work, I used |
|
Hi, I'm trying to run a test suite with my existing app config. Going through the erlang.mk options , CT_OPTS seemed like the way to go with this so I did try
CT_OPTS = -config debug.config
in my makefile. I still can't get access to my config file after doing this. How do you set external config files for common tests with erlang.mk? Thanks.The text was updated successfully, but these errors were encountered: