Class: Google::Apis::TestingV1::TestTargetsForShard

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

Test targets for a shard.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TestTargetsForShard

Returns a new instance of TestTargetsForShard.



2335
2336
2337
# File 'generated/google/apis/testing_v1/classes.rb', line 2335

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

Instance Attribute Details

#test_targetsArray<String>

Group of packages, classes, and/or test methods to be run for each shard. The targets need to be specified in AndroidJUnitRunner argument format. For example, “package com.my.packages” “class com.my.package.MyClass”. The number of shard_test_targets must be greater than 0. Corresponds to the JSON property testTargets

Returns:

  • (Array<String>)


2333
2334
2335
# File 'generated/google/apis/testing_v1/classes.rb', line 2333

def test_targets
  @test_targets
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2340
2341
2342
# File 'generated/google/apis/testing_v1/classes.rb', line 2340

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