CodeCoverage - AWS CodeBuild

CodeCoverage

Contains code coverage report information.

Line coverage measures how many statements your tests cover. A statement is a single instruction, not including comments, conditionals, etc.

Branch coverage determines if your tests cover every possible branch of a control structure, such as an if or case statement.

Contents

Note

In the following list, the required parameters are described first.

branchCoveragePercentage

The percentage of branches that are covered by your tests.

Type: Double

Valid Range: Minimum value of 0. Maximum value of 100.

Required: No

branchesCovered

The number of conditional branches that are covered by your tests.

Type: Integer

Valid Range: Minimum value of 0.

Required: No

branchesMissed

The number of conditional branches that are not covered by your tests.

Type: Integer

Valid Range: Minimum value of 0.

Required: No

expired

The date and time that the tests were run.

Type: Timestamp

Required: No

filePath

The path of the test report file.

Type: String

Length Constraints: Minimum length of 1.

Required: No

id

The identifier of the code coverage report.

Type: String

Length Constraints: Minimum length of 1.

Required: No

lineCoveragePercentage

The percentage of lines that are covered by your tests.

Type: Double

Valid Range: Minimum value of 0. Maximum value of 100.

Required: No

linesCovered

The number of lines that are covered by your tests.

Type: Integer

Valid Range: Minimum value of 0.

Required: No

linesMissed

The number of lines that are not covered by your tests.

Type: Integer

Valid Range: Minimum value of 0.

Required: No

reportARN

The ARN of the report.

Type: String

Length Constraints: Minimum length of 1.

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: