Interface PredictiveTestSelectionExtension
-
public interface PredictiveTestSelectionExtensionTask extension for configuring Predictive Test Selection.This extension is added with name "predictiveSelection" to all
Testtasks.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfacePredictiveTestSelectionExtension.MustRunCriteriaA set of criteria for specifying which tests must always run.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Property<Boolean>getEnabled()Whether Predictive Test Selection is enabled.PredictiveTestSelectionExtension.MustRunCriteriagetMustRun()The set of criteria for specifying which tests must always run.voidmustRun(Action<? super PredictiveTestSelectionExtension.MustRunCriteria> action)The set of criteria for specifying which tests must always run.
-
-
-
Field Detail
-
NAME
static final String NAME
The name of the extension added to each test task.- See Also:
- Constant Field Values
-
-
Method Detail
-
getEnabled
@Internal Property<Boolean> getEnabled()
Whether Predictive Test Selection is enabled.This setting defaults to
false, which results in the task executing tests with the built-in non-distributed test infrastructure.- Returns:
- whether Predictive Test Selection is enabled
-
getMustRun
@Internal PredictiveTestSelectionExtension.MustRunCriteria getMustRun()
The set of criteria for specifying which tests must always run.
-
mustRun
void mustRun(Action<? super PredictiveTestSelectionExtension.MustRunCriteria> action)
The set of criteria for specifying which tests must always run.
-
-