开发者

Adding parameters to the init_per_testcase config parameter

开发者 https://www.devze.com 2023-04-10 01:01 出处:网络
I have a erlang integration test using the common test frame work. The config parameter passed to the init_per_testcase call and all the tests is initialized as:

I have a erlang integration test using the common test frame work. The config parameter passed to the init_per_testcase call and all the tests is initialized as:

ConfigFilename = filename:absname("something.config", os:getenv("TEST_DIR")),
con开发者_如何学JAVAfig:load(ConfigFilename).

How can a I add a parameter to the config object, I would like to add a PID for a gen_server which all tests must use.


It was a list of key value tuples so [{key,Value}|Config] did the trick.

0

精彩评论

暂无评论...
验证码 换一张
取 消