Interface PredictiveTestSelectionExtension
-
public interface PredictiveTestSelectionExtension
Task extension for configuring Predictive Test Selection.This extension is added with name "predictiveSelection" to all
Test
tasks.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
PredictiveTestSelectionExtension.MustRunCriteria
A set of criteria for specifying which tests must always run.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NAME
The name of the extension added to each test task.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Property<java.lang.Boolean>
getEnabled()
Whether Predictive Test Selection is enabled.PredictiveTestSelectionExtension.MustRunCriteria
getMustRun()
The set of criteria for specifying which tests must always run.void
mustRun(Action<? super PredictiveTestSelectionExtension.MustRunCriteria> action)
The set of criteria for specifying which tests must always run.
-
-
-
Field Detail
-
NAME
static final java.lang.String NAME
The name of the extension added to each test task.- See Also:
- Constant Field Values
-
-
Method Detail
-
getEnabled
@Internal Property<java.lang.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.
-
-