public class AndroidUnitTest
extends org.gradle.api.tasks.testing.Test
implements com.android.build.gradle.internal.tasks.VariantAwareTask
Test
that we need to use for local unit tests support.Modifier and Type | Class and Description |
---|---|
static class |
AndroidUnitTest.CreationAction
Configuration Action for a JavaCompile task.
|
Constructor and Description |
---|
AndroidUnitTest() |
Modifier and Type | Method and Description |
---|---|
com.android.build.api.artifact.BuildableArtifact |
getAssetsCollection() |
org.gradle.api.provider.Provider<org.gradle.api.file.Directory> |
getMergedManifest() |
com.android.build.api.artifact.BuildableArtifact |
getResCollection() |
java.lang.String |
getSdkPlatformDirPath() |
java.lang.String |
getVariantName() |
void |
setVariantName(java.lang.String name) |
bootstrapClasspath, copyTo, copyTo, createTestExecuter, createTestExecutionSpec, environment, environment, exclude, exclude, exclude, exclude, executable, executeTests, filter, getActorFactory, getAllJvmArgs, getBootstrapClasspath, getCandidateClassFiles, getClassLoaderCache, getClasspath, getDebug, getDefaultCharacterEncoding, getEnableAssertions, getEnvironment, getExcludes, getExecutable, getFailFast, getFileResolver, getForkEvery, getIncludes, getJavaVersion, getJvmArgs, getJvmArgumentProviders, getMaxHeapSize, getMaxParallelForks, getMinHeapSize, getModuleRegistry, getNoMatchingTestErrorReasons, getOptions, getProcessBuilderFactory, getSystemProperties, getTestClassesDirs, getTestFramework, getWorkingDir, include, include, include, include, isScanForTestClasses, jvmArgs, jvmArgs, options, options, setAllJvmArgs, setAllJvmArgs, setBootstrapClasspath, setClasspath, setDebug, setDefaultCharacterEncoding, setEnableAssertions, setEnvironment, setExcludes, setExecutable, setExecutable, setFailFast, setForkEvery, setIncludes, setJvmArgs, setJvmArgs, setMaxHeapSize, setMaxParallelForks, setMinHeapSize, setScanForTestClasses, setSystemProperties, setTestClassesDirs, setTestNameIncludePatterns, setWorkingDir, setWorkingDir, systemProperties, systemProperty, testFramework, useJUnit, useJUnit, useJUnit, useJUnitPlatform, useJUnitPlatform, useTestNG, useTestNG, useTestNG, workingDir
addTestListener, addTestOutputListener, afterSuite, afterTest, beforeSuite, beforeTest, getBinaryResultsDirectory, getBinResultsDir, getBuildOperationExecutor, getCallbackActionDecorator, getFilter, getIgnoreFailures, getInetAddressFactory, getInstantiator, getListenerManager, getProgressLoggerFactory, getReports, getTestLogging, getTextOutputFactory, onOutput, removeTestListener, removeTestOutputListener, reports, reports, setBinResultsDir, setIgnoreFailures, testLogging, testLogging
conventionMapping, conventionMapping, getConventionMapping
newInputDirectory, newInputFile, newOutputDirectory, newOutputFile
appendParallelSafeAction, compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getTimeout, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, replaceLogger, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toString
@Internal @NonNull public java.lang.String getVariantName()
getVariantName
in interface com.android.build.gradle.internal.tasks.VariantAwareTask
public void setVariantName(@NonNull java.lang.String name)
setVariantName
in interface com.android.build.gradle.internal.tasks.VariantAwareTask
@InputFiles @Optional public com.android.build.api.artifact.BuildableArtifact getResCollection()
@InputFiles @Optional public com.android.build.api.artifact.BuildableArtifact getAssetsCollection()
@Input public java.lang.String getSdkPlatformDirPath()
@InputFiles public org.gradle.api.provider.Provider<org.gradle.api.file.Directory> getMergedManifest()