How to specify configuration file for common_test run with armature

I have a common test suite, and I need to run it with a reinforcement . This is usually done using the command

rebar ct suites=mysuite 

But there is an obstacle. My package is the required configuration file, and I need to specify it when I run the tests. ct_run allows you to do this with

 ct_run -config <configfile> 

Does anyone know how I can specify a configuration file with armature ?

+4
source share
2 answers

I am looking at the source code , and it does not look like you can specify it by name.

It is hardcoded to search your test directory for the following files:

  • test.config for the -ct_config option
  • app.config for the -config option

If this does not work for you, perhaps you can fix it by instead accepting the rebar.config parameter.

+6
source

Update: use rebar3 instead of rebar

Add the following to rebar.config :

 {ct_opts, [ {config, "./config/test.config"} ]}. 

More details here .

+2
source

Source: https://habr.com/ru/post/1491435/


All Articles