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

feat: Add support for simctl features since Xcode SDK 11.4 #96

Merged
merged 2 commits into from
Feb 6, 2020

Conversation

mykola-mokhnach
Copy link
Contributor

lib/simctl.js Outdated
log.errorAndThrow(`simctl error running '${command}': ${e.stderr.trim()}`);
} else {
log.errorAndThrow(e);
if (logErrors && e.stderr) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems like a change in the semantics of logErrors. The docstring says "Set it to _false_ to throw execution errors immediately without logging any additional information", which does not any longer seem to be the case.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

makes sense

In general, I observe a lot of redundancy in this module. I'd rather make it into a class, so all these functions don't have to accept the same set of arguments (like udid and/or logErrors), but rather accept them in the constructor. What do you think @imurchie ?

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree. Especially since it seems like someone is actually adding things to simctl.

@mykola-mokhnach mykola-mokhnach merged commit 9124178 into appium:master Feb 6, 2020
@dpgraham
Copy link
Contributor

dpgraham commented Feb 6, 2020

You beat me to it 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants