test_cases
Creates, updates, deletes, gets or lists a test_cases resource.
Overview
| Name | test_cases |
| Type | Resource |
| Id | aws.codebuild.test_cases |
Fields
The following fields are returned by SELECT queries:
- describe_test_cases
| Name | Datatype | Description |
|---|---|---|
name | string | The name of the test case. |
duration_in_nano_seconds | integer (int64) | The number of nanoseconds it took to run this test case. |
expired | string (date-time) | The date and time a test case expires. A test case expires 30 days after it is created. An expired test case is not available to view in CodeBuild. |
message | string | A message associated with a test case. For example, an error message or stack trace. |
prefix | string | A string that is applied to a series of related test cases. CodeBuild generates the prefix. The prefix depends on the framework used to generate the tests. |
report_arn | string | The ARN of the report to which the test case belongs. |
status | string | The status returned by the test case after it was run. Valid statuses are SUCCEEDED, FAILED, ERROR, SKIPPED, and UNKNOWN. |
test_raw_data_path | string | The path to the raw data file that contains the test result. |
test_suite_name | string | The name of the test suite that the test case is a part of. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_test_cases | select | region | Returns a list of details about test cases for a report. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- describe_test_cases
Returns a list of details about test cases for a report.
SELECT
name,
duration_in_nano_seconds,
expired,
message,
prefix,
report_arn,
status,
test_raw_data_path,
test_suite_name
FROM aws.codebuild.test_cases
WHERE region = '{{ region }}' -- required
;