Class: Google::Apis::TestingV1::ManualSharding

Inherits:
Object
  • Object
show all
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

Constructor Details

#initialize(**args) ⇒ ManualSharding

Returns a new instance of ManualSharding.



1603
1604
1605
# File 'generated/google/apis/testing_v1/classes.rb', line 1603

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#test_targets_for_shardArray<Google::Apis::TestingV1::TestTargetsForShard>

Required. Group of packages, classes, and/or test methods to be run for each shard. When any physical devices are selected, the number of test_targets_for_shard must be >= 1 and <= 50. When no physical devices are selected, the number must be >= 1 and <= 500. Corresponds to the JSON property testTargetsForShard



1601
1602
1603
# File 'generated/google/apis/testing_v1/classes.rb', line 1601

def test_targets_for_shard
  @test_targets_for_shard
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1608
1609
1610
# File 'generated/google/apis/testing_v1/classes.rb', line 1608

def update!(**args)
  @test_targets_for_shard = args[:test_targets_for_shard] if args.key?(:test_targets_for_shard)
end