Class: Google::Apis::TestingV1::ManualSharding
- Inherits:
-
Object
- Object
- Google::Apis::TestingV1::ManualSharding
- 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
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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ManualSharding
Returns a new instance of ManualSharding.
1519 1520 1521 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1519 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 shard. The number of shard_test_targets must be >= 1 and <= 50.
Corresponds to the JSON property testTargetsForShard
1517 1518 1519 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1517 def test_targets_for_shard @test_targets_for_shard end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1524 1525 1526 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1524 def update!(**args) @test_targets_for_shard = args[:test_targets_for_shard] if args.key?(:test_targets_for_shard) end |