-
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 no window option for running android emulator with no window #690
Conversation
detox/local-cli/detox-test.js
Outdated
@@ -34,6 +34,8 @@ program | |||
+ 'e.g test with substring \':ios:\' in its name will not run when passing \'--platform android\'') | |||
.option('-f, --file [path]', | |||
'Specify test file to run') | |||
.option('-W, --nowindow', | |||
'Run Android without window') |
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.
1.Be as expressive as you can, this is documentation. Text suggestion: "[Android Only] Launch Emulator in headless mode. Useful when running on CI."
2. Update docs (cli section)
3. Why capital W?
4. Let's use same flag as emulator --no-window.
WDYT?
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.
- Ok, fixed.
- Done.
- Right, changed this to -n
- --no-window is problematic for how we are doing the flags parsing (as you said). I changed it to --noWindow
This is inconsistent with other methods. Look at debug-synchronization, it can still be parsed correctly to debugSynchronization |
Tested locally and passed