Skip to main content

code_coverages

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

Overview

Namecode_coverages
TypeResource
Idaws.codebuild.code_coverages

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe identifier of the code coverage report.
branch_coverage_percentagenumber (double)The percentage of branches that are covered by your tests.
branches_coveredintegerThe number of conditional branches that are covered by your tests.
branches_missedintegerThe number of conditional branches that are not covered by your tests.
expiredstring (date-time)The date and time that the tests were run.
file_pathstringThe path of the test report file.
line_coverage_percentagenumber (double)The percentage of lines that are covered by your tests.
lines_coveredintegerThe number of lines that are covered by your tests.
lines_missedintegerThe number of lines that are not covered by your tests.
report_arnstringThe ARN of the report.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_code_coveragesselectregionRetrieves one or more code coverage reports.

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

Retrieves one or more code coverage reports.

SELECT
id,
branch_coverage_percentage,
branches_covered,
branches_missed,
expired,
file_path,
line_coverage_percentage,
lines_covered,
lines_missed,
report_arn
FROM aws.codebuild.code_coverages
WHERE region = '{{ region }}' -- required
;