-
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
Add CLI parameter for overriding device name #878
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks solid, but the docs are not aligned with your changes to CLI.
Please update them and then we are good to merge.
@@ -45,6 +45,8 @@ program | |||
'[Android Only] Launch Emulator in headless mode. Useful when running on CI.') | |||
.option('-w, --workers <n>', | |||
'[iOS Only] Specifies number of workers the test runner should spawn, requires a test runner with parallel execution support (Detox CLI currently supports Jest)', 1) | |||
.option('-n, --device-name [name]', | |||
'Override the device name specified in a configuration. Useful for running a single build configuration on multiple devices.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I'd forgotten about that. Done, thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, thanks, I'll check it locally and get back to you.
For #875
This PR adds an extra command line param to
detox test
to override the device name in a given configuration. This is handy for when you want to run a test for the same configuration across multiple devices. E.g: