public interface TestData
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAnimationsDisabled() |
java.lang.String |
getApplicationId()
Returns the application id.
|
java.lang.String |
getFlavorName()
Returns the flavor name being test.
|
java.lang.String |
getInstrumentationRunner() |
java.util.Map<java.lang.String,java.lang.String> |
getInstrumentationRunnerArguments() |
com.android.sdklib.AndroidVersion |
getMinSdkVersion()
The min SDK version of the app
|
java.io.File |
getTestApk()
Returns the APK containing the test classes for the application.
|
java.util.List<java.io.File> |
getTestDirectories()
Returns the list of directories containing test so the build system can check the presence
of tests before deploying anything.
|
com.google.common.collect.ImmutableList<java.io.File> |
getTestedApks(com.android.ide.common.process.ProcessExecutor processExecutor,
java.io.File splitSelectExe,
com.android.builder.testing.api.DeviceConfigProvider deviceConfigProvider,
com.android.utils.ILogger logger)
Returns an APK file to install based on given density and abis.
|
java.lang.String |
getTestedApplicationId()
Returns the tested application id.
|
boolean |
isLibrary() |
boolean |
isTestCoverageEnabled()
Returns whether the tested app is enabled for code coverage
|
void |
loadFromMetadataFile(java.io.File metadataFile)
load the tested variant build output metadata file.
|
void loadFromMetadataFile(java.io.File metadataFile)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException
metadataFile - the metadata file of the tested variant.javax.xml.parsers.ParserConfigurationException - xml configuration errororg.xml.sax.SAXException - xml parsing errorjava.io.IOException - cannot load the xml file.@NonNull java.lang.String getApplicationId()
@Nullable java.lang.String getTestedApplicationId()
@NonNull java.lang.String getInstrumentationRunner()
@NonNull java.util.Map<java.lang.String,java.lang.String> getInstrumentationRunnerArguments()
boolean getAnimationsDisabled()
boolean isTestCoverageEnabled()
@NonNull com.android.sdklib.AndroidVersion getMinSdkVersion()
boolean isLibrary()
@NonNull
com.google.common.collect.ImmutableList<java.io.File> getTestedApks(@NonNull
com.android.ide.common.process.ProcessExecutor processExecutor,
@Nullable
java.io.File splitSelectExe,
@NonNull
com.android.builder.testing.api.DeviceConfigProvider deviceConfigProvider,
com.android.utils.ILogger logger)
throws com.android.ide.common.process.ProcessException
processExecutor - an executor for slave processes.splitSelectExe - path to the split-select native tool.deviceConfigProvider - provider for the test device characteristics.com.android.ide.common.process.ProcessException@NonNull java.lang.String getFlavorName()
@NonNull java.io.File getTestApk()
@NonNull java.util.List<java.io.File> getTestDirectories()