public class AndroidInstrumentationApk extends AndroidBinary
Android's Testing Fundamentals documentation includes a diagram that shows the relationship between an "application package" and a "test package" when running a test. This corresponds to a test package. Note that a test package has an interesting quirk where it is compiled against an application package, but must not include the resources or Java classes of the application package. Therefore, this class takes responsibility for making sure the appropriate bits are excluded. Failing to do so will generate mysterious runtime errors when running the test.
HasInstallableApk.ApkInfo| Modifier and Type | Method and Description |
|---|---|
AndroidBinary |
getApkUnderTest() |
java.util.stream.Stream<BuildTarget> |
getInstallHelpers() |
java.util.stream.Stream<BuildTarget> |
getRuntimeDeps(BuildRuleResolver buildRuleResolver) |
deprecatedGetExtraDeps, getAndroidPackageableCollection, getApkInfo, getBuildDeps, getBuildSteps, getBuildTargetsToExcludeFromDex, getCpuFilters, getDeclaredDeps, getDepsForTransitiveClasspathEntries, getImmediateClasspaths, getKeystore, getManifestEntries, getOptimizationPasses, getOutputClasspaths, getProguardConfig, getProguardJvmArgs, getResourceCompressionMode, getResourceFilter, getRulesToExcludeFromDex, getSkipProguard, getSourcePathToOutput, getTargetGraphOnlyDeps, getTransitiveClasspathDeps, getTransitiveClasspaths, inputBasedRuleKeyIsEnabled, isCacheableequals, getBuildTarget, getDependencies, getProjectFilesystem, getSourcePathOutputs, getType, hasBuildSteps, hashCode, injectFields, toString, updateBuildRuleResolverclone, finalize, getClass, notify, notifyAll, wait, wait, waitisSupportedcompareTo, getBuildTarget, getFullyQualifiedName, getProjectFilesystem, hasBuildSteps, outputFileCanBeCopied, shouldRespectInputSizeLimitForRemoteExecution, toString, updateBuildRuleResolvergetDependencies, getSourcePathOutputsgetTypegetBuildTarget, getProjectFilesystempublic java.util.stream.Stream<BuildTarget> getInstallHelpers()
getInstallHelpers in interface HasInstallHelpersgetInstallHelpers in class AndroidBinarypublic AndroidBinary getApkUnderTest()
public java.util.stream.Stream<BuildTarget> getRuntimeDeps(BuildRuleResolver buildRuleResolver)
getRuntimeDeps in interface HasRuntimeDepsgetRuntimeDeps in class AndroidBinary