Skip to content
This repository was archived by the owner on Dec 7, 2019. It is now read-only.

Add configurable APK installation timeout.#109

Merged
yunikkk merged 3 commits intogojuno:masterfrom
DroidsOnRoids:master
Nov 9, 2017
Merged

Add configurable APK installation timeout.#109
yunikkk merged 3 commits intogojuno:masterfrom
DroidsOnRoids:master

Conversation

@koral--
Copy link
Copy Markdown
Contributor

@koral-- koral-- commented Nov 8, 2017

gojuno/commander#7 continuation.

description = "APK installation timeout in seconds. If not passed defaults to 120 seconds (2 minutes). Applicable to both test APK and APK under test.",
order = 11
)
var installTimeoutSeconds: Int = TimeUnit.MINUTES.toSeconds(2).toInt()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Not sure this is how you set default value, most likely JCommander will override that anyway

Can you add a test please?

parseArgs(rawArgsWithOnlyRequiredFields + arrayOf("--install-timeout", "600"))
}

it("parses --install-timeout correctly") {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

But what about default value? :)

Copy link
Copy Markdown
Collaborator

@artem-zinnatullin artem-zinnatullin left a comment

Choose a reason for hiding this comment

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

👍

@yunikkk yunikkk merged commit 14978c1 into gojuno:master Nov 9, 2017
@artem-zinnatullin
Copy link
Copy Markdown
Collaborator

@koral-- thanks!

Pls report if it solved your issue :)

@koral--
Copy link
Copy Markdown
Contributor Author

koral-- commented Nov 9, 2017

OK, thanks for the quick response.
I'll create appropriate PR in https://github.com/trevjonez/composer-gradle-plugin and check it ASAP.

@artem-zinnatullin
Copy link
Copy Markdown
Collaborator

artem-zinnatullin commented Nov 10, 2017 via email

@trevjonez
Copy link
Copy Markdown

I have an issue open for it there already. trevjonez/composer-gradle-plugin#8

Shoot me a pr or I can get it in and updated first thing in the morning.

@trevjonez
Copy link
Copy Markdown

this repo is in need of a readme update to reflect this new flag.

@koral--
Copy link
Copy Markdown
Contributor Author

koral-- commented Nov 10, 2017

Just added README update in #110.
I'll try to create PR in plugin repo ASAP.

@yunikkk
Copy link
Copy Markdown
Contributor

yunikkk commented Nov 10, 2017

Oh, and other flags, I guess. Will add them separately.

@trevjonez
Copy link
Copy Markdown

pr is up for this. any review is welcome. thus far the gradle plugin has been a solo effort so I will merge in an hour or so if nothing moves on it

@koral--
Copy link
Copy Markdown
Contributor Author

koral-- commented Nov 11, 2017

@artem-zinnatullin

Pls report if it solved your issue :)

I would said that it is partially solved. Indeed installation time is not an issue now. So change from this PR is OK.

But it seems that installation hangs when output file reaches 64KB. I'll investigate that further and create separate issue possibly.

@artem-zinnatullin
Copy link
Copy Markdown
Collaborator

@koral-- yeah, what a "wonderful" world of programmatic binary invocations…

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.

4 participants