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.



1882
1883
1884
# File 'lib/google/apis/testing_v1/classes.rb', line 1882

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 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 <= 200. When you select only x86 virtual devices, it must be <= 500. Corresponds to the JSON property testTargetsForShard



1880
1881
1882
# File 'lib/google/apis/testing_v1/classes.rb', line 1880

def test_targets_for_shard
  @test_targets_for_shard
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1887
1888
1889
# File 'lib/google/apis/testing_v1/classes.rb', line 1887

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