[erlang-questions] CT config

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


Hi,

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:

[{chatest_cleaner,<0.456.0>},
                           {watchdog,<0.455.0>},
                           {tc_logfile,

"c:/Users/Konrad/workspace/ichat/chatest/ct_report/ct_run.ichatd_debug@REDACTED
/chatest.tests.logs/run.2015-03-24_20.34.00/room_suite.enter_story.html"},
                           {tc_group_properties,[{name,info},sequence]},
                           {tc_group_path,[]},
                           {data_dir,

"c:/Users/Konrad/workspace/ichat/chatest/tests/room_SUITE_data/"},
                           {priv_dir,

"c:/Users/Konrad/workspace/ichat/chatest/ct_report/ct_run.ichatd_debug@REDACTED
/chatest.tests.logs/run.2015-03-24_20.34.00/log_private/"}]
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
>>
>> erl $(INCLUDES) $(BEAMS_PATH) $(ERL_OPTS) $(CT_OPTS)
>>
>> 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
>>
>>


-- 
Konrad.
-------------- 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