-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Command line arguments to app when testing #181
Comments
Looking at the code, my proposal would be to add command line arguments here https://github.com/adamski/detox/blob/master/detox/src/devices/DeviceLoader.js#L22 e.g. // Set this somewhere
var args = ["-test", "true"];
//...
await fbsimctl.launch(simulatorUdid, bundleId, args) |
We've been discussing this internally for a while. In general, I don't like people having On the JS front, we are working on a solution that allows you to mock stuff at the "compiler" level - during packaging. I'd love to have a similar solution for native, where at |
Totally fair points here, I also don't like the |
This feature will be released with Detox 5.5.0 |
I'd like to invoke a switch in the native part of my app when testing, in this case to mock audio input. I've been looking for a way to pass a command line argument to the app but not found anything - is there a way to do this with Detox? If not I'm happy to create a PR.
The text was updated successfully, but these errors were encountered: