Class TestDistributionConfiguration_1_0

  • All Implemented Interfaces:
    com.gradle.scan.eventmodel.EventData

    @GradleVersion(since="5.4")
    @PluginVersion(since="3.14")
    public class TestDistributionConfiguration_1_0
    extends Object
    implements com.gradle.scan.eventmodel.EventData
    Captures the Test Distribution configuration for a test task.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int maxLocalExecutors
      The configured number of executors to use for running tests on build client.
      @Nullable("if no maximum number of remote executors is set") Integer maxRemoteExecutors
      The configured number of remote executors that should be requested from the remote test execution infrastructure in order run the tests of this test task.
      boolean remoteExecutionPreferred
      Whether remote executors are tried first, falling back to local ones after waitTimeout expires.
      Set<String> requirements
      Configured requirements that need to be fulfilled by executors in order to execute the tests of this test task.
      boolean retryInSameJvm
      Describes whether the tests should be retried in the same JVM.
      long task
      The ID of the test task the configuration is captured for.
      long waitTimeout
      The configuration duration the build waits for the remote test execution infrastructure to respond in milliseconds.
    • Constructor Summary

      Constructors 
      Constructor Description
      TestDistributionConfiguration_1_0​(long task, int maxLocalExecutors, @Nullable Integer maxRemoteExecutors, boolean remoteExecutionPreferred, long waitTimeout, boolean retryInSameJvm, Set<String> requirements)  
    • Field Detail

      • task

        public final long task
        The ID of the test task the configuration is captured for.

        Corresponds to TaskStarted_1_0.id.

      • maxLocalExecutors

        public final int maxLocalExecutors
        The configured number of executors to use for running tests on build client.
      • maxRemoteExecutors

        @Nullable("if no maximum number of remote executors is set")
        public final @Nullable("if no maximum number of remote executors is set") Integer maxRemoteExecutors
        The configured number of remote executors that should be requested from the remote test execution infrastructure in order run the tests of this test task. This setting has no default value (as many remote executors as possible are requested in that case).
      • remoteExecutionPreferred

        public final boolean remoteExecutionPreferred
        Whether remote executors are tried first, falling back to local ones after waitTimeout expires.
      • waitTimeout

        public final long waitTimeout
        The configuration duration the build waits for the remote test execution infrastructure to respond in milliseconds.
      • retryInSameJvm

        public final boolean retryInSameJvm
        Describes whether the tests should be retried in the same JVM.
      • requirements

        public final Set<String> requirements
        Configured requirements that need to be fulfilled by executors in order to execute the tests of this test task.
    • Constructor Detail

      • TestDistributionConfiguration_1_0

        public TestDistributionConfiguration_1_0​(long task,
                                                 int maxLocalExecutors,
                                                 @Nullable
                                                 @Nullable Integer maxRemoteExecutors,
                                                 boolean remoteExecutionPreferred,
                                                 long waitTimeout,
                                                 boolean retryInSameJvm,
                                                 Set<String> requirements)