Class AndroidUnitTest
- java.lang.Object
-
- org.gradle.api.internal.AbstractTask
-
- org.gradle.api.DefaultTask
-
- org.gradle.api.internal.ConventionTask
-
- org.gradle.api.tasks.testing.AbstractTestTask
-
- org.gradle.api.tasks.testing.Test
-
- com.android.build.gradle.tasks.factory.AndroidUnitTest
-
- All Implemented Interfaces:
com.android.build.gradle.internal.tasks.VariantAwareTask,java.lang.Comparable<org.gradle.api.Task>,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.IConventionAware,org.gradle.api.internal.TaskInternal,org.gradle.api.plugins.ExtensionAware,org.gradle.api.reporting.Reporting<org.gradle.api.tasks.testing.TestTaskReports>,org.gradle.api.Task,org.gradle.api.tasks.util.PatternFilterable,org.gradle.api.tasks.VerificationTask,org.gradle.process.JavaForkOptions,org.gradle.process.ProcessForkOptions,org.gradle.util.Configurable<org.gradle.api.Task>
@CacheableTask public abstract class AndroidUnitTest extends org.gradle.api.tasks.testing.Test implements com.android.build.gradle.internal.tasks.VariantAwareTaskPatched version ofTestthat we need to use for local unit tests support.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAndroidUnitTest.CreationAction
-
Constructor Summary
Constructors Constructor Description AndroidUnitTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecuteTests()com.android.build.gradle.tasks.GenerateTestConfig.TestConfigInputsgetTestConfigInputs()java.lang.StringgetVariantName()voidsetVariantName(java.lang.String name)-
Methods inherited from class org.gradle.api.tasks.testing.Test
bootstrapClasspath, copyTo, copyTo, createTestExecuter, createTestExecutionSpec, debugOptions, environment, environment, exclude, exclude, exclude, exclude, executable, filter, getActorFactory, getAllJvmArgs, getBootstrapClasspath, getCandidateClassFiles, getClasspath, getDebug, getDebugOptions, getDefaultCharacterEncoding, getEnableAssertions, getEnvironment, getExcludes, getExecutable, getFailFast, getForkEvery, getForkOptionsFactory, getIncludes, getJavaLauncher, getJavaModuleDetector, getJavaVersion, getJvmArgs, getJvmArgumentProviders, getMaxHeapSize, getMaxParallelForks, getMinHeapSize, getModularity, getModuleRegistry, getNoMatchingTestErrorReasons, getObjectFactory, getOptions, getPatternSetFactory, getProcessBuilderFactory, getStableClasspath, getSystemProperties, getTestClassesDirs, getTestFramework, getTestFrameworkProperty, 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
-
Methods inherited from class org.gradle.api.tasks.testing.AbstractTestTask
addTestListener, addTestOutputListener, afterSuite, afterTest, beforeSuite, beforeTest, getBinaryResultsDirectory, getBinResultsDir, getBuildOperationExecutor, getFileSystemOperations, getFilter, getHostnameLookup, getIgnoreFailures, getInstantiator, getListenerManager, getProgressLoggerFactory, getReports, getTestLogging, getTextOutputFactory, onOutput, removeTestListener, removeTestOutputListener, reports, reports, setBinResultsDir, setIgnoreFailures, testLogging, testLogging
-
Methods inherited from class org.gradle.api.internal.ConventionTask
conventionMapping, conventionMapping, getConventionMapping
-
Methods inherited from class org.gradle.api.DefaultTask
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
-
Methods inherited from class org.gradle.api.internal.AbstractTask
appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getOnlyIf, getReasonNotToTrackState, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, prependParallelSafeAction, setImpliesSubProjects
-
-
-
-
Method Detail
-
getVariantName
@Internal @NonNull public java.lang.String getVariantName()
- Specified by:
getVariantNamein interfacecom.android.build.gradle.internal.tasks.VariantAwareTask
-
setVariantName
public void setVariantName(@NonNull java.lang.String name)- Specified by:
setVariantNamein interfacecom.android.build.gradle.internal.tasks.VariantAwareTask
-
getTestConfigInputs
@Optional public com.android.build.gradle.tasks.GenerateTestConfig.TestConfigInputs getTestConfigInputs()
-
executeTests
public void executeTests()
- Overrides:
executeTestsin classorg.gradle.api.tasks.testing.Test
-
-