class Google::Apis::TestingV1::UniformSharding

Uniformly shards test cases given a total number of shards. For Instrumentation test, it will be translated to “-e numShard” “-e shardIndex” AndroidJUnitRunner arguments. With uniform sharding enabled, specifying these sharding arguments via environment_variables is invalid.

Attributes

num_shards[RW]

Required. Total number of shards. When any physical devices are selected, the number must be >= 1 and <= 50. When no physical devices are selected, the number must be >= 1 and <= 500. Corresponds to the JSON property `numShards` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/testing_v1/classes.rb, line 2607
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/testing_v1/classes.rb, line 2612
def update!(**args)
  @num_shards = args[:num_shards] if args.key?(:num_shards)
end