getslash / slash

The Slash testing infrastructure
https://getslash.github.io/slash
Other
75 stars 38 forks source link

supporting custom command line #1022

Open nhershko opened 4 years ago

nhershko commented 4 years ago

Hi, It's appear that slash is not allowing users to configure custom variables via command line. When running via execution engine as Jenkins this is very essential. Do I missed something or it is deliberately blocked?

Thanks, N.

vmalloc commented 4 years ago

@nhershko can you give an example of what you'd like to use?

nhershko commented 4 years ago

I would like to have few execution parameters that will be used at pre_test (hooks) or the test itself. something like --foo=bar (copied from #1006) or db_enaled etc.
In Jenkins I can configure it without changing the code.

ayalash commented 4 years ago

@nhershko All slash configuration values can be override from command-line using the -o flag (see overriding configuration docs). If you extend slash configuration with your own configuration, you'll be able to override it as well. In addition, if you want to have a specific flag name (in your above comment --foo), you can do it by using Cmdline in your configuration (see example here ).

nhershko commented 4 years ago

@ayalash , thanks for your replay. In that case I'll have to had that new configuration at my local config file, right? I would like to avoid it because I don't want to keep slash config file at my repo.