Interface PredictiveTestSelectionConfiguration
-
public interface PredictiveTestSelectionConfiguration
Task extension for configuring Predictive Test Selection.- Since:
- 3.17
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
PredictiveTestSelectionConfiguration.MustRunCriteria
A set of criteria for specifying which tests must always run.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Property<java.lang.Boolean>
getEnabled()
Whether Predictive Test Selection is enabled.Property<java.lang.Boolean>
getFallbackToRegularExecutionOnMissingPrerequisites()
Whether Predictive Test Selection should fall back to regular execution, if JUnit Platform is not enabled.Property<PredictiveTestSelectionMode>
getMode()
The mode to use for selecting tests.PredictiveTestSelectionConfiguration.MustRunCriteria
getMustRun()
The set of criteria for specifying which tests must always run.Property<PredictiveTestSelectionProfile>
getProfile()
The selection profile to use for selecting tests.void
mustRun(Action<? super PredictiveTestSelectionConfiguration.MustRunCriteria> action)
The set of criteria for specifying which tests must always run.
-
-
-
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 PredictiveTestSelectionConfiguration.MustRunCriteria getMustRun()
The set of criteria for specifying which tests must always run.
-
mustRun
void mustRun(Action<? super PredictiveTestSelectionConfiguration.MustRunCriteria> action)
The set of criteria for specifying which tests must always run.
-
getMode
@Internal Property<PredictiveTestSelectionMode> getMode()
The mode to use for selecting tests.The
pts.mode
system property can be used to configure the mode from the command line unless the mode is configured explicitly in the build script.
-
getProfile
@Internal Property<PredictiveTestSelectionProfile> getProfile()
The selection profile to use for selecting tests. If not set, a server-side configured default profile will be used.
-
-