Interface PredictiveTestSelectionConfiguration
-
public interface PredictiveTestSelectionConfigurationTask extension for configuring Predictive Test Selection.- Since:
- 3.17
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfacePredictiveTestSelectionConfiguration.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<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.MustRunCriteriagetMustRun()The set of criteria for specifying which tests must always run.Property<PredictiveTestSelectionProfile>getProfile()The selection profile to use for selecting tests.voidmustRun(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.modesystem 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.
-
-