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, isCacheable
equals, getBuildTarget, getDependencies, getProjectFilesystem, getSourcePathOutputs, getType, hasBuildSteps, hashCode, injectFields, toString, updateBuildRuleResolver
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isSupported
compareTo, getBuildTarget, getFullyQualifiedName, getProjectFilesystem, hasBuildSteps, outputFileCanBeCopied, shouldRespectInputSizeLimitForRemoteExecution, toString, updateBuildRuleResolver
getDependencies, getSourcePathOutputs
getType
getBuildTarget, getProjectFilesystem
public java.util.stream.Stream<BuildTarget> getInstallHelpers()
getInstallHelpers
in interface HasInstallHelpers
getInstallHelpers
in class AndroidBinary
public AndroidBinary getApkUnderTest()
public java.util.stream.Stream<BuildTarget> getRuntimeDeps(BuildRuleResolver buildRuleResolver)
getRuntimeDeps
in interface HasRuntimeDeps
getRuntimeDeps
in class AndroidBinary