class Google::Apis::TestingV1::ShardingOption
Options for enabling sharding.
Attributes
manual_sharding[RW]
Shards test cases into the specified groups of packages, classes, and/or methods. With manual sharding enabled, specifying test targets via environment_variables or in InstrumentationTest is invalid. Corresponds to the JSON property `manualSharding` @return [Google::Apis::TestingV1::ManualSharding]
uniform_sharding[RW]
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. Corresponds to the JSON property `uniformSharding` @return [Google::Apis::TestingV1::UniformSharding]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/testing_v1/classes.rb, line 1954 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 1959 def update!(**args) @manual_sharding = args[:manual_sharding] if args.key?(:manual_sharding) @uniform_sharding = args[:uniform_sharding] if args.key?(:uniform_sharding) end