Class: Google::Apis::TestingV1::ShardingOption
- Inherits:
-
Object
- Object
- Google::Apis::TestingV1::ShardingOption
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/testing_v1/classes.rb,
generated/google/apis/testing_v1/representations.rb,
generated/google/apis/testing_v1/representations.rb
Overview
Options for enabling sharding.
Instance Attribute Summary collapse
-
#manual_sharding ⇒ Google::Apis::TestingV1::ManualSharding
Shards test cases into the specified groups of packages, classes, and/or methods.
-
#uniform_sharding ⇒ Google::Apis::TestingV1::UniformSharding
Uniformly shards test cases given a total number of shards.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ShardingOption
constructor
A new instance of ShardingOption.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ShardingOption
Returns a new instance of ShardingOption.
1863 1864 1865 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1863 def initialize(**args) update!(**args) end |
Instance Attribute Details
#manual_sharding ⇒ Google::Apis::TestingV1::ManualSharding
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
1853 1854 1855 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1853 def manual_sharding @manual_sharding end |
#uniform_sharding ⇒ 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.
Corresponds to the JSON property uniformSharding
1861 1862 1863 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1861 def uniform_sharding @uniform_sharding end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1868 1869 1870 1871 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1868 def update!(**args) @manual_sharding = args[:manual_sharding] if args.key?(:manual_sharding) @uniform_sharding = args[:uniform_sharding] if args.key?(:uniform_sharding) end |