Skip to content
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

Merged
merged 3 commits into from
Aug 9, 2018

Conversation

robbiemccorkell
Copy link
Contributor

@robbiemccorkell robbiemccorkell commented Aug 8, 2018

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:

detox build --configuration ios.sim.release --device-name 'iPhone X'

Copy link
Collaborator

@noomorph noomorph left a 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.')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

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.

Copy link
Collaborator

@noomorph noomorph left a 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.

@noomorph noomorph merged commit 6d4698e into wix:master Aug 9, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Aug 12, 2018
@robbiemccorkell robbiemccorkell deleted the device-name-override branch August 13, 2018 17:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants