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

refactor: Move am instrument commad formatter to dedicated module #1948

Merged
merged 2 commits into from
May 21, 2021

Conversation

jan-goral
Copy link
Contributor

@jan-goral jan-goral commented May 19, 2021

This patch fixes inconsequence in the AndroidTestPlan API where AndroidTestPlan.Execute is receiving structured shards as input but producing raw am instrument -r -w log lines as output.

As a result of this fix:

  • API of AndroidTestPlan.Execute is normalized to operate on raw input and output.
  • prepareRunCommand is renamed to formatAmInstrumentCommand and moved to :corellium:instrument:log module so the adapter layer is a slightly thinner.
  • :corellium:log is moved to :corellium:instrument:log for consistency.
  • The responsibility for calling formatAmInstrumentCommand is moved from the ExecuteAndroidTestPlan adapter to the ExecuteTests step, so the domain logic is controlling a little bit more.
  • Overall SRP ratio increases 🎉

@github-actions
Copy link
Contributor

github-actions bot commented May 19, 2021

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@github-actions
Copy link
Contributor

github-actions bot commented May 19, 2021

Timestamp: 2021-05-20 11:43:06
Buildscan url for ubuntu-workflow run 860238866
https://gradle.com/s/ve5ow3lypwpjw

Base automatically changed from corellium-domain to master May 19, 2021 15:58
@jan-goral jan-goral force-pushed the corellium-execute-test-design-fix branch from 66a5cc6 to e9982f2 Compare May 19, 2021 16:37
@jan-goral jan-goral marked this pull request as ready for review May 19, 2021 16:37
@jan-goral jan-goral changed the title refactor: Move am instrument commad formatter to separated module refactor: Move am instrument commad formatter to dedicated module May 20, 2021
@bootstraponline bootstraponline force-pushed the corellium-execute-test-design-fix branch from e9982f2 to 22ce8a5 Compare May 20, 2021 11:36
Copy link
Contributor

@Sloox Sloox left a comment

Choose a reason for hiding this comment

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

👍

@mergify mergify bot merged commit 86d060e into master May 21, 2021
@mergify mergify bot deleted the corellium-execute-test-design-fix branch May 21, 2021 13:24
@github-actions github-actions bot locked and limited conversation to collaborators May 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants