Struct google_api_proto::google::devtools::testing::v1::TestMatrix
source · pub struct TestMatrix {Show 14 fields
pub test_matrix_id: String,
pub project_id: String,
pub client_info: Option<ClientInfo>,
pub test_specification: Option<TestSpecification>,
pub environment_matrix: Option<EnvironmentMatrix>,
pub test_executions: Vec<TestExecution>,
pub result_storage: Option<ResultStorage>,
pub state: i32,
pub timestamp: Option<Timestamp>,
pub invalid_matrix_details: i32,
pub extended_invalid_matrix_details: Vec<MatrixErrorDetail>,
pub flaky_test_attempts: i32,
pub outcome_summary: i32,
pub fail_fast: bool,
}
Expand description
TestMatrix captures all details about a test. It contains the environment configuration, test specification, test executions and overall state and outcome.
Fields§
§test_matrix_id: String
Output only. Unique id set by the service.
project_id: String
The cloud project that owns the test matrix.
client_info: Option<ClientInfo>
Information about the client which invoked the test.
test_specification: Option<TestSpecification>
Required. How to run the test.
environment_matrix: Option<EnvironmentMatrix>
Required. The devices the tests are being executed on.
test_executions: Vec<TestExecution>
Output only. The list of test executions that the service creates for this matrix.
result_storage: Option<ResultStorage>
Required. Where the results for the matrix are written.
state: i32
Output only. Indicates the current progress of the test matrix.
timestamp: Option<Timestamp>
Output only. The time this test matrix was initially created.
invalid_matrix_details: i32
Output only. Describes why the matrix is considered invalid. Only useful for matrices in the INVALID state.
extended_invalid_matrix_details: Vec<MatrixErrorDetail>
Output only. Details about why a matrix was deemed invalid. If multiple checks can be safely performed, they will be reported but no assumptions should be made about the length of this list.
flaky_test_attempts: i32
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.
outcome_summary: i32
Output Only. The overall outcome of the test. Only set when the test matrix state is FINISHED.
fail_fast: bool
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.
Implementations§
source§impl TestMatrix
impl TestMatrix
sourcepub fn state(&self) -> TestState
pub fn state(&self) -> TestState
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
sourcepub fn invalid_matrix_details(&self) -> InvalidMatrixDetails
pub fn invalid_matrix_details(&self) -> InvalidMatrixDetails
Returns the enum value of invalid_matrix_details
, or the default if the field is set to an invalid enum value.
sourcepub fn set_invalid_matrix_details(&mut self, value: InvalidMatrixDetails)
pub fn set_invalid_matrix_details(&mut self, value: InvalidMatrixDetails)
Sets invalid_matrix_details
to the provided enum value.
sourcepub fn outcome_summary(&self) -> OutcomeSummary
pub fn outcome_summary(&self) -> OutcomeSummary
Returns the enum value of outcome_summary
, or the default if the field is set to an invalid enum value.
sourcepub fn set_outcome_summary(&mut self, value: OutcomeSummary)
pub fn set_outcome_summary(&mut self, value: OutcomeSummary)
Sets outcome_summary
to the provided enum value.
Trait Implementations§
source§impl Clone for TestMatrix
impl Clone for TestMatrix
source§fn clone(&self) -> TestMatrix
fn clone(&self) -> TestMatrix
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TestMatrix
impl Debug for TestMatrix
source§impl Default for TestMatrix
impl Default for TestMatrix
source§impl Message for TestMatrix
impl Message for TestMatrix
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for TestMatrix
impl PartialEq for TestMatrix
source§fn eq(&self, other: &TestMatrix) -> bool
fn eq(&self, other: &TestMatrix) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TestMatrix
Auto Trait Implementations§
impl Freeze for TestMatrix
impl RefUnwindSafe for TestMatrix
impl Send for TestMatrix
impl Sync for TestMatrix
impl Unpin for TestMatrix
impl UnwindSafe for TestMatrix
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request