Interface DevelocityTestConfiguration


public interface DevelocityTestConfiguration
The DSL extension for configuring Develocity testing features, with the name develocity.

 tasks.test {
   develocity {
     // Develocity configuration
     testDistribution {
       enabled.set(true)
     }
     predictiveTestSelection {
       enabled.set(true)
     }
     testRetry {
       maxRetries.set(2)
     }
   }
 }
 
Since:
3.17
  • Method Details

    • getPredictiveTestSelection

      PredictiveTestSelectionConfiguration getPredictiveTestSelection()
      The Predictive Test Selection configuration.
      Returns:
      the Predictive Test Selection configuration
    • predictiveTestSelection

      void predictiveTestSelection(Action<? super PredictiveTestSelectionConfiguration> action)
      Configure Predictive Test Selection.
      Parameters:
      action - the configuration action
    • getTestDistribution

      TestDistributionConfiguration getTestDistribution()
      The Test Distribution configuration.
      Returns:
      the Test Distribution configuration
    • testDistribution

      void testDistribution(Action<? super TestDistributionConfiguration> action)
      Configure Test Distribution.
      Parameters:
      action - the configuration action
    • getTestRetry

      TestRetryConfiguration getTestRetry()
      The test retry configuration.
      Returns:
      the test retry configuration
    • testRetry

      void testRetry(Action<? super TestRetryConfiguration> action)
      Configure test retries.
      Parameters:
      action - the configuration action