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

Support for directories-to-pull and environment-variables #6

Open
dotdoom opened this issue Aug 18, 2017 · 3 comments
Open

Support for directories-to-pull and environment-variables #6

dotdoom opened this issue Aug 18, 2017 · 3 comments

Comments

@dotdoom
Copy link

dotdoom commented Aug 18, 2017

In order to generate coverage of e.g. Espresso tests, it's necessary to make the following adjustments:

  • set testCoverageEnabled true in build.gradle > android > buildTypes > [buildType] block
    (minifyEnabled has to be false)
  • add --environment-variables coverage=true,coverageFile=/sdcard/coverage/somefile to gcloud cmdline (see documentation)
  • add --directories-to-pull /sdcard/coverage to gcloud cmdline (so that the files will be pulled into artifacts subdirectory in the GCS bucket)
  • add jacoco-agent.properties file to classpath (e.g. to resources) with destfile set to a writable directory
  • add external storage read/write permissions to AndroidManifest.xml

Of all the above, do you think it would be feasible to add support for --environment-variables and --directories-to-pull (in some generic way, perhaps verbatim strings) gcloud options to the plugin, and most importantly, an ability to copyArtifact the artifacts subdirectory?

@gildor
Copy link
Owner

gildor commented Aug 18, 2017

I see. Definitely, make sense. My original goal to support all features of CLI gcloud.
My current implementation was created before gcloud supported such options, so yes, I will try to find time to prototype it on this weekend

@dotdoom
Copy link
Author

dotdoom commented Nov 23, 2017

A friendly ping!

@gildor
Copy link
Owner

gildor commented Nov 24, 2017

Thanks for a ping! :) Will do 👍

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

No branches or pull requests

2 participants