You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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
In order to generate coverage of e.g. Espresso tests, it's necessary to make the following adjustments:
testCoverageEnabled true
inbuild.gradle > android > buildTypes > [buildType]
block(
minifyEnabled
has to befalse
)--environment-variables coverage=true,coverageFile=/sdcard/coverage/somefile
togcloud
cmdline (see documentation)--directories-to-pull /sdcard/coverage
togcloud
cmdline (so that the files will be pulled intoartifacts
subdirectory in the GCS bucket)jacoco-agent.properties
file to classpath (e.g. to resources) withdestfile
set to a writable directoryAndroidManifest.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 tocopyArtifact
theartifacts
subdirectory?The text was updated successfully, but these errors were encountered: