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

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

Constructor Details

#initialize(**args) ⇒ ManualSharding

Returns a new instance of ManualSharding.



1616
1617
1618
# File 'lib/google/apis/testing_v1/classes.rb', line 1616

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



1614
1615
1616
# File 'lib/google/apis/testing_v1/classes.rb', line 1614

def test_targets_for_shard
  @test_targets_for_shard
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1621
1622
1623
# File 'lib/google/apis/testing_v1/classes.rb', line 1621

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