Interface TestVariant

All Superinterfaces:
AndroidArtifactVariant, ApkVariant, BaseVariant, InstallableVariant, com.android.build.gradle.internal.core.InternalBaseVariant, VersionedVariant

@Deprecated public interface TestVariant extends ApkVariant
Deprecated.
A Build variant and all its public data.
  • Method Details

    • getTestedVariant

      @NonNull BaseVariant getTestedVariant()
      Deprecated.
      Returns the build variant that is tested by this variant.
    • getConnectedInstrumentTest

      @Nullable @Deprecated org.gradle.api.DefaultTask getConnectedInstrumentTest()
      Returns the task to run the tests.

      Only valid for test project.

    • getConnectedInstrumentTestProvider

      @Nullable org.gradle.api.tasks.TaskProvider<org.gradle.api.Task> getConnectedInstrumentTestProvider()
      Deprecated.
      Returns the TaskProvider for the task to run the tests.

      Only valid for test project.

      Prefer this to getConnectedInstrumentTest() as it triggers eager configuration of the task.

    • getProviderInstrumentTests

      @NonNull List<? extends org.gradle.api.DefaultTask> getProviderInstrumentTests()
      Returns the tasks to run the tests.

      Only valid for test project.

    • getProviderInstrumentTestProviders

      @NonNull List<org.gradle.api.tasks.TaskProvider<org.gradle.api.Task>> getProviderInstrumentTestProviders()
      Deprecated.
      Returns the TaskProviders for the tasks to run the tests.

      Only valid for test project.

      Prefer this to getProviderInstrumentTests() as it triggers eager configuration of the tasks.