[erlang-questions] CT config

Konrad Wyrozumski danrokk@REDACTED
Tue Mar 24 20:35:51 CET 2015


I tried that as well. Now the command that executes tests is like below:

ct_run  -pa ebin  -pa ../ichatd/ebin -pa ../ichatd/deps/lager/ebin -sname
ichatd_debug@REDACTED -s lager -s ichat_app -s chatest_app -s erlang halt
-stylesheet styles/test_categories.css -ct_config test
.config -dir tests -logdir ct_report

So I removed app.config totaly from the command. I also checked with
-config option, but the result stays the same.

I printed the config that goes into test suite:




Do you have any other ideas?

Best Regards,

2015-03-24 15:03 GMT+01:00 Daniel Hallin Widgren <daniel.widgren@REDACTED>:

> Have you tried ct_run instead of erl?
> That will start common test from terminal.
> There is a section in user guide in common test documentation.
> Den 24 mar 2015 14:28 skrev "Konrad Wyrozumski" <danrokk@REDACTED>:
>> Hi all,
>> Some time ago I was working on some project and created Makefile that was
>> running tests. Now it looks like something has changed with erlang release
>> since R16 which is version I was working on.
>> I want to specify config used for test suites and it seems like always
>> Config gets values from ERL_OPTS, not CT_OPTS. Please see part of Makefile
>> below:
>> CT_OPTS= -stylesheet styles/test_categories.css -ct_config test.config
>> -dir tests -logdir ct_report
>> ERL_OPTS=-config app.config -sname $(DEBUG_NODE_NAME) -s lager -s
>> chat_app -s chatest_app -s ct_run script_start -s erlang halt
>> BEAMS_PATH=-pa ebin  -pa ../chatd/ebin -pa ../chatd/deps/lager/ebin
>> How can I specify config file that is passed to init_per_suite/1,
>> end_per_suite/1 etc functions?
>> Best Regards,
>> --
>> Konrad.
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150324/e173553a/attachment.htm>

More information about the erlang-questions mailing list