HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/share/doc/awscli/examples/codebuild/describe-code-coverages.rst
**To get detailed information about code coverage test results in AWS CodeBuild.**

The following ``describe-code-coverages`` example gets information about the code coverage test results in the specified report. ::

    aws codebuild describe-code-coverages \
        --report-arn arn:aws:codebuild:<region-ID>:<account-ID>:report/<report-group-name>:<report-ID>

Output::

    {
        "codeCoverages": [
            {
                "id": "20a0adcc-db13-4b66-804b-ecaf9f852855",
                "reportARN": "arn:aws:codebuild:<region-ID>:972506530580:report/<report-group-name>:<report-ID>",
                "filePath": "<source-file-1-path>",
                "lineCoveragePercentage": 83.33,
                "linesCovered": 5,
                "linesMissed": 1,
                "branchCoveragePercentage": 50.0,
                "branchesCovered": 1,
                "branchesMissed": 1,
                "expired": "2020-11-20T21:22:45+00:00"
            },
            {
                "id": "0887162d-bf57-4cf1-a164-e432373d1a83",
                "reportARN": "arn:aws:codebuild:<region-ID>:972506530580:report/<report-group-name>:<report-ID>",
                "filePath": "<source-file-2-path>",
                "lineCoveragePercentage": 90.9,
                "linesCovered": 10,
                "linesMissed": 1,
                "branchCoveragePercentage": 50.0,
                "branchesCovered": 1,
                "branchesMissed": 1,
                "expired": "2020-11-20T21:22:45+00:00"
            }
        ]
    }

For more information, see `Code coverage reports <https://docs.aws.amazon.com/codebuild/latest/userguide/code-coverage-report.html>`__ in the *AWS CodeBuild User Guide*.