Class: Google::Apis::TestingV1::ManualSharding
- Inherits:
-
Object
- Object
- Google::Apis::TestingV1::ManualSharding
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/testing_v1/classes.rb,
lib/google/apis/testing_v1/representations.rb,
lib/google/apis/testing_v1/representations.rb
Overview
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.
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(**args) ⇒ ManualSharding
constructor
A new instance of ManualSharding.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ManualSharding
Returns a new instance of ManualSharding.
1864 1865 1866 |
# File 'lib/google/apis/testing_v1/classes.rb', line 1864 def initialize(**args) update!(**args) end |
Instance Attribute Details
#test_targets_for_shard ⇒ Array<Google::Apis::TestingV1::TestTargetsForShard>
Required. Group of packages, classes, and/or test methods to be run for each
manually-created shard. You must specify at least one shard if this field is
present. When you select one or more physical devices, the number of repeated
test_targets_for_shard must be <= 50. When you select one or more ARM virtual
devices, it must be <= 100. When you select only x86 virtual devices, it must
be <= 500.
Corresponds to the JSON property testTargetsForShard
1862 1863 1864 |
# File 'lib/google/apis/testing_v1/classes.rb', line 1862 def test_targets_for_shard @test_targets_for_shard end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1869 1870 1871 |
# File 'lib/google/apis/testing_v1/classes.rb', line 1869 def update!(**args) @test_targets_for_shard = args[:test_targets_for_shard] if args.key?(:test_targets_for_shard) end |