Skip to main content

test_cases

Creates, updates, deletes, gets or lists a test_cases resource.

Overview

Nametest_cases
TypeResource
Idaws.codebuild.test_cases

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the test case.
duration_in_nano_secondsinteger (int64)The number of nanoseconds it took to run this test case.
expiredstring (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.
messagestringA message associated with a test case. For example, an error message or stack trace.
prefixstringA 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_arnstringThe ARN of the report to which the test case belongs.
statusstringThe status returned by the test case after it was run. Valid statuses are SUCCEEDED, FAILED, ERROR, SKIPPED, and UNKNOWN.
test_raw_data_pathstringThe path to the raw data file that contains the test result.
test_suite_namestringThe name of the test suite that the test case is a part of.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_test_casesselectregionReturns 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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

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
;