Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to specify configuration file for common_test running tests with rebar

I have a common test suite and I need to perform it with rebar. Usually it is done with command

rebar ct suites=mysuite

But there is an obstacle. My suite is required configuration file and I need to specify it when I am performing tests. ct_run allows to do it with

ct_run -config <configfile>

Does anybody know how can I specify config file with rebar?

like image 443
Danil Onishchenko Avatar asked Feb 15 '23 22:02

Danil Onishchenko


1 Answers

I'm looking at the source code, and it doesn't look like you can specify one by name.

It's hard coded to look in your test directory for the following files:

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

If that doesn't work for you, you could probably patch it to take a rebar.config parameter instead.

like image 148
kjw0188 Avatar answered May 13 '23 01:05

kjw0188