Interface PredictiveTestSelectionExtension


  • public interface PredictiveTestSelectionExtension
    Task extension for configuring Predictive Test Selection.

    This extension is added with name "predictiveSelection" to all Test tasks.

    • 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
      • 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.

        Since:
        3.14
      • getFallbackToRegularExecutionOnMissingJUnitPlatform

        @Internal
        Property<java.lang.Boolean> getFallbackToRegularExecutionOnMissingJUnitPlatform()
        Whether test acceleration should fall back to regular execution, if JUnit Platform is not enabled.
        Since:
        3.15.2