Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

TestMatrix

import type { TestMatrix } from "https://googleapis.deno.dev/v1/testing:v1.ts";

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

interface TestMatrix {
clientInfo?: ClientInfo;
environmentMatrix?: EnvironmentMatrix;
readonly extendedInvalidMatrixDetails?: MatrixErrorDetail[];
failFast?: boolean;
flakyTestAttempts?: number;
invalidMatrixDetails?:
| "INVALID_MATRIX_DETAILS_UNSPECIFIED"
| "DETAILS_UNAVAILABLE"
| "MALFORMED_APK"
| "MALFORMED_TEST_APK"
| "NO_MANIFEST"
| "NO_PACKAGE_NAME"
| "INVALID_PACKAGE_NAME"
| "TEST_SAME_AS_APP"
| "NO_INSTRUMENTATION"
| "NO_SIGNATURE"
| "INSTRUMENTATION_ORCHESTRATOR_INCOMPATIBLE"
| "NO_TEST_RUNNER_CLASS"
| "NO_LAUNCHER_ACTIVITY"
| "FORBIDDEN_PERMISSIONS"
| "INVALID_ROBO_DIRECTIVES"
| "INVALID_RESOURCE_NAME"
| "INVALID_DIRECTIVE_ACTION"
| "TEST_LOOP_INTENT_FILTER_NOT_FOUND"
| "SCENARIO_LABEL_NOT_DECLARED"
| "SCENARIO_LABEL_MALFORMED"
| "SCENARIO_NOT_DECLARED"
| "DEVICE_ADMIN_RECEIVER"
| "MALFORMED_XC_TEST_ZIP"
| "BUILT_FOR_IOS_SIMULATOR"
| "NO_TESTS_IN_XC_TEST_ZIP"
| "USE_DESTINATION_ARTIFACTS"
| "TEST_NOT_APP_HOSTED"
| "PLIST_CANNOT_BE_PARSED"
| "TEST_ONLY_APK"
| "MALFORMED_IPA"
| "MISSING_URL_SCHEME"
| "MALFORMED_APP_BUNDLE"
| "NO_CODE_APK"
| "INVALID_INPUT_APK"
| "INVALID_APK_PREVIEW_SDK"
| "MATRIX_TOO_LARGE"
| "TEST_QUOTA_EXCEEDED"
| "SERVICE_NOT_ACTIVATED"
| "UNKNOWN_PERMISSION_ERROR";
outcomeSummary?:
| "OUTCOME_SUMMARY_UNSPECIFIED"
| "SUCCESS"
| "FAILURE"
| "INCONCLUSIVE"
| "SKIPPED";
projectId?: string;
resultStorage?: ResultStorage;
state?:
| "TEST_STATE_UNSPECIFIED"
| "VALIDATING"
| "PENDING"
| "RUNNING"
| "FINISHED"
| "ERROR"
| "UNSUPPORTED_ENVIRONMENT"
| "INCOMPATIBLE_ENVIRONMENT"
| "INCOMPATIBLE_ARCHITECTURE"
| "CANCELLED"
| "INVALID";
testExecutions?: TestExecution[];
testMatrixId?: string;
testSpecification?: TestSpecification;
timestamp?: Date;
}

§Properties

§
clientInfo?: ClientInfo
[src]

Information about the client which invoked the test.

§
environmentMatrix?: EnvironmentMatrix
[src]

Required. The devices the tests are being executed on.

§
readonly extendedInvalidMatrixDetails?: MatrixErrorDetail[]
[src]

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.

§
failFast?: boolean
[src]

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.

§
flakyTestAttempts?: number
[src]

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.

§
invalidMatrixDetails?: "INVALID_MATRIX_DETAILS_UNSPECIFIED" | "DETAILS_UNAVAILABLE" | "MALFORMED_APK" | "MALFORMED_TEST_APK" | "NO_MANIFEST" | "NO_PACKAGE_NAME" | "INVALID_PACKAGE_NAME" | "TEST_SAME_AS_APP" | "NO_INSTRUMENTATION" | "NO_SIGNATURE" | "INSTRUMENTATION_ORCHESTRATOR_INCOMPATIBLE" | "NO_TEST_RUNNER_CLASS" | "NO_LAUNCHER_ACTIVITY" | "FORBIDDEN_PERMISSIONS" | "INVALID_ROBO_DIRECTIVES" | "INVALID_RESOURCE_NAME" | "INVALID_DIRECTIVE_ACTION" | "TEST_LOOP_INTENT_FILTER_NOT_FOUND" | "SCENARIO_LABEL_NOT_DECLARED" | "SCENARIO_LABEL_MALFORMED" | "SCENARIO_NOT_DECLARED" | "DEVICE_ADMIN_RECEIVER" | "MALFORMED_XC_TEST_ZIP" | "BUILT_FOR_IOS_SIMULATOR" | "NO_TESTS_IN_XC_TEST_ZIP" | "USE_DESTINATION_ARTIFACTS" | "TEST_NOT_APP_HOSTED" | "PLIST_CANNOT_BE_PARSED" | "TEST_ONLY_APK" | "MALFORMED_IPA" | "MISSING_URL_SCHEME" | "MALFORMED_APP_BUNDLE" | "NO_CODE_APK" | "INVALID_INPUT_APK" | "INVALID_APK_PREVIEW_SDK" | "MATRIX_TOO_LARGE" | "TEST_QUOTA_EXCEEDED" | "SERVICE_NOT_ACTIVATED" | "UNKNOWN_PERMISSION_ERROR"
[src]

Output only. Describes why the matrix is considered invalid. Only useful for matrices in the INVALID state.

§
outcomeSummary?: "OUTCOME_SUMMARY_UNSPECIFIED" | "SUCCESS" | "FAILURE" | "INCONCLUSIVE" | "SKIPPED"
[src]

Output Only. The overall outcome of the test. Only set when the test matrix state is FINISHED.

§
projectId?: string
[src]

The cloud project that owns the test matrix.

§
resultStorage?: ResultStorage
[src]

Required. Where the results for the matrix are written.

§
state?: "TEST_STATE_UNSPECIFIED" | "VALIDATING" | "PENDING" | "RUNNING" | "FINISHED" | "ERROR" | "UNSUPPORTED_ENVIRONMENT" | "INCOMPATIBLE_ENVIRONMENT" | "INCOMPATIBLE_ARCHITECTURE" | "CANCELLED" | "INVALID"
[src]

Output only. Indicates the current progress of the test matrix.

§
testExecutions?: TestExecution[]
[src]

Output only. The list of test executions that the service creates for this matrix.

§
testMatrixId?: string
[src]

Output only. Unique id set by the service.

§
testSpecification?: TestSpecification
[src]

Required. How to run the test.

§
timestamp?: Date
[src]

Output only. The time this test matrix was initially created.