TestSuiteBuilder

Added in 9.0.0

interface TestSuiteBuilder : Named


Interface to configure TestSuite during the AndroidComponentsExtension.beforeVariants callbacks.

Usage example

androidComponents.beforeVariants { variant ->
(variant as? HasTestSuites)?.suites.forEach { suiteBuilder ->
suiteBuilder.enable = false
}
}

Summary

Public properties

Boolean

Enables or disable the test suite for the current variant.

JUnitEngineSpecBuilder

Configure the com.android.build.api.dsl.JUnitEngineSpec for this test suite in this variant.

Map<StringTestSuiteTargetBuilder>

Configure the list of TestSuiteTargetBuilder for this test suite in this variant.

Inherited functions

From org.gradle.api.Named

Public properties

enable

Added in 9.0.0
var enableBoolean

Enables or disable the test suite for the current variant.

junitEngineSpec

Added in 9.0.0
val junitEngineSpecJUnitEngineSpecBuilder

Configure the com.android.build.api.dsl.JUnitEngineSpec for this test suite in this variant.

targets

Added in 9.0.0
val targetsMap<StringTestSuiteTargetBuilder>

Configure the list of TestSuiteTargetBuilder for this test suite in this variant.

The Map keys are the test suite names.