Interface PredictiveTestSelectionConfiguration
public interface PredictiveTestSelectionConfiguration
Task extension for configuring Predictive Test Selection.
- Since:
- 3.17
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
A set of criteria for specifying which tests must always run. -
Method Summary
Modifier and TypeMethodDescriptionWhether Predictive Test Selection is enabled.Whether Predictive Test Selection should fall back to regular execution, if JUnit Platform is not enabled.getMode()
The mode to use for selecting tests.The set of criteria for specifying which tests must always run.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 Details
-
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
The set of criteria for specifying which tests must always run. -
mustRun
The set of criteria for specifying which tests must always run. -
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
The selection profile to use for selecting tests. If not set, a server-side configured default profile will be used. -
getFallbackToRegularExecutionOnMissingPrerequisites
Whether Predictive Test Selection should fall back to regular execution, if JUnit Platform is not enabled.
-