New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow all settings to be defined without cli arguments #1306
Comments
Let's follow this in #1238 as they seem to discuss the same subject. |
I noticed #1238 references this issue in the last checkbox, so @noomorph should either remove that reference or this issue should be re-opened. FWIW I think it makes sense to reopen this issue to separate concerns. Commits can be tagged with this issue number rather than the catch-all issue of #1238, but that is just my two cents 😄. Either way, thanks for your quick responses, much appreciated. |
Just wanted to note that all command line arguments will fall back to checking for the equivalent camel-cased environment variables. (see detox/src/utils/argparse.js) |
With #1729, we added all artifacts collection options to Detox's |
With #2038, |
Currently, I am planning to add support for:
Will post soon a link to a WiP PR. |
@noomorph can this be closed, then? |
@d4vidi, yeah, let's close it. |
Is your feature request related to a problem? Please describe.
Some arguments, such as
loglevel
or cleanup, can only be defined as CLI arguments, which forces the user to use the detox-cli. While the detox cli is very convenient, we are integrating detox into a toolchain that cannot use it, yet still want to modify these parameters.Describe the solution you'd like
The option to pass all configurations values as optional parameters to functions.
The order of preference would be:
Alternative solution
In cases where it's impractical to pass the arguments, an environment variable could be used.
The text was updated successfully, but these errors were encountered: