public abstract class TestedExtension extends BaseExtension
base 'android' extension for plugins that have a test component.
Fields inherited from class | Fields |
---|---|
class BaseExtension |
logger, project |
Constructor and description |
---|
TestedExtension
(org.gradle.api.internal.project.ProjectInternal project, org.gradle.internal.reflect.Instantiator instantiator, AndroidBuilder androidBuilder, SdkHandler sdkHandler, org.gradle.api.NamedDomainObjectContainer<BuildType> buildTypes, org.gradle.api.NamedDomainObjectContainer<ProductFlavor> productFlavors, org.gradle.api.NamedDomainObjectContainer<SigningConfig> signingConfigs, ExtraModelInfo extraModelInfo, boolean isLibrary) |
Type | Name and description |
---|---|
void |
addTestVariant(TestVariant testVariant) |
void |
addUnitTestVariant(UnitTestVariant testVariant) |
String |
getTestBuildType() Name of the build type that will be used when running Android (on-device) tests. |
org.gradle.api.DomainObjectSet<TestVariant> |
getTestVariants() Returns the list of (Android) test variants. |
org.gradle.api.DomainObjectSet<UnitTestVariant> |
getUnitTestVariants() Returns the list of (Android) test variants. |
void |
setTestBuildType(String testBuildType) |
Name of the build type that will be used when running Android (on-device) tests.
Defaults to "debug".
Returns the list of (Android) test variants. Since the collections is built after evaluation,
it should be used with Gradle's all
iterator to process future items.
Returns the list of (Android) test variants. Since the collections is built after evaluation,
it should be used with Gradle's all
iterator to process future items.