class Google::Apis::TestingV1::TestMatrix

TestMatrix captures all details about a test. It contains the environment configuration, test specification, test executions and overall state and outcome.

Attributes

client_info[RW]

Information about the client which invoked the test. Corresponds to the JSON property `clientInfo` @return [Google::Apis::TestingV1::ClientInfo]

environment_matrix[RW]

The matrix of environments in which the test is to be executed. Corresponds to the JSON property `environmentMatrix` @return [Google::Apis::TestingV1::EnvironmentMatrix]

fail_fast[RW]

If true, only a single attempt at most will be made to run each execution/ shard in the matrix. Flaky test attempts are not affected. Normally, 2 or more attempts are made if a potential infrastructure issue is detected. This feature is for latency sensitive workloads. The incidence of execution failures may be significantly greater for fail-fast matrices and support is more limited because of that expectation. Corresponds to the JSON property `failFast` @return [Boolean]

fail_fast?[RW]

If true, only a single attempt at most will be made to run each execution/ shard in the matrix. Flaky test attempts are not affected. Normally, 2 or more attempts are made if a potential infrastructure issue is detected. This feature is for latency sensitive workloads. The incidence of execution failures may be significantly greater for fail-fast matrices and support is more limited because of that expectation. Corresponds to the JSON property `failFast` @return [Boolean]

flaky_test_attempts[RW]

The number of times a TestExecution should be re-attempted if one or more of its test cases fail for any reason. The maximum number of reruns allowed is 10. Default is 0, which implies no reruns. Corresponds to the JSON property `flakyTestAttempts` @return [Fixnum]

invalid_matrix_details[RW]

Output only. Describes why the matrix is considered invalid. Only useful for matrices in the INVALID state. Corresponds to the JSON property `invalidMatrixDetails` @return [String]

outcome_summary[RW]

Output Only. The overall outcome of the test. Only set when the test matrix state is FINISHED. Corresponds to the JSON property `outcomeSummary` @return [String]

project_id[RW]

The cloud project that owns the test matrix. Corresponds to the JSON property `projectId` @return [String]

result_storage[RW]

Locations where the results of running the test are stored. Corresponds to the JSON property `resultStorage` @return [Google::Apis::TestingV1::ResultStorage]

state[RW]

Output only. Indicates the current progress of the test matrix. Corresponds to the JSON property `state` @return [String]

test_executions[RW]

Output only. The list of test executions that the service creates for this matrix. Corresponds to the JSON property `testExecutions` @return [Array<Google::Apis::TestingV1::TestExecution>]

test_matrix_id[RW]

Output only. Unique id set by the service. Corresponds to the JSON property `testMatrixId` @return [String]

test_specification[RW]

A description of how to run the test. Corresponds to the JSON property `testSpecification` @return [Google::Apis::TestingV1::TestSpecification]

timestamp[RW]

Output only. The time this test matrix was initially created. Corresponds to the JSON property `timestamp` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/testing_v1/classes.rb, line 2244
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/testing_v1/classes.rb, line 2249
def update!(**args)
  @client_info = args[:client_info] if args.key?(:client_info)
  @environment_matrix = args[:environment_matrix] if args.key?(:environment_matrix)
  @fail_fast = args[:fail_fast] if args.key?(:fail_fast)
  @flaky_test_attempts = args[:flaky_test_attempts] if args.key?(:flaky_test_attempts)
  @invalid_matrix_details = args[:invalid_matrix_details] if args.key?(:invalid_matrix_details)
  @outcome_summary = args[:outcome_summary] if args.key?(:outcome_summary)
  @project_id = args[:project_id] if args.key?(:project_id)
  @result_storage = args[:result_storage] if args.key?(:result_storage)
  @state = args[:state] if args.key?(:state)
  @test_executions = args[:test_executions] if args.key?(:test_executions)
  @test_matrix_id = args[:test_matrix_id] if args.key?(:test_matrix_id)
  @test_specification = args[:test_specification] if args.key?(:test_specification)
  @timestamp = args[:timestamp] if args.key?(:timestamp)
end