Skip to content

Coverage Commits page#

The Coverage Commits page displays an overview of the commits in your repository, such as the analysis status and coverage for each commit. This allows you to monitor the evolution of coverage in your repository per commit.

By default, the page lists the commits on the main branch of your repository but if you have more than one branch enabled you can use the drop-down list at the top of the page to display commits on other branches.

Commits page

Click a specific commit to see detailed information about the code coverage changes introduced by that commit.

Commit detail

The next sections describe each area of the commit detail page.

Commit information#

This area displays detailed information about the commit:

  • Commit message
  • Committer, SHA hash, and parent commits
  • Date
  • Link to the commit on your Git provider

Commit information

Commit coverage overview#

This area displays the coverage gate status and an overview of the coverage metrics for the commit:

  • The quality gate status is either Up to coverage standards or Not up to coverage standards depending on the coverage gate rules for your repository.

    If you don't have any rules enabled for commits, the status is always Up to coverage standards.

  • The following coverage metrics for the commit, displayed either as a positive or negative variation, or no variation (represented by =):

    • Coverage variation: Variation of code coverage percentage relative to the parent commit
    • Total coverage: Coverage value of the repository at this commit

    Note

    Learn how Codacy calculates the code quality metrics in more detail:

  • The colors depend on the coverage gate rules for your repository:

    • Green: The metric passes the coverage gate
    • Red: The metric fails the coverage gate
    • Gray: There aren't coverage gate rules configured for the metric or the value doesn't impact the coverage gate

Commit quality overview

Diff tab#

The Diff tab displays a line-by-line view of the coverage variation introduced by the commit. It includes the following areas:

  • A list of files modified by the commit, with additional information for each file:

    • A green plus icon if the file is added or a yellow dot icon if it's modified by the commit
    • The coverage variation introduced by the commit (green or red value) or the total file coverage if there's no variation (grey value)
  • A diff viewer showing for each modified file the diff coverage and a comparison of the old and new file content. The background of any added or modified lines depends on their coverage status:

    • Red: Uncovered line
    • Green: Covered line, labeled with its test coverage count
    • No background: Non-coverable line

Diff tab

Files tab#

The Files tab displays the coverage variation that the commit introduces to the files in your repository relative to the parent commit, displayed either as a positive or negative variation, or no variation (represented by =):

The option Show also files without coverage changes allows you to list all files that the commit updates, even if their coverage doesn't change.

Files tab

Share your feedback 📢

Did this page help you?

Thanks for the feedback! Is there anything else you'd like to tell us about this page?

We're sorry to hear that. Please let us know what we can improve:

Alternatively, you can create a more detailed issue on our GitHub repository.

Thanks for helping improve the Codacy documentation.

Edit this page on GitHub if you notice something wrong or missing.

If you have a question or need help please contact support@codacy.com.

Last modified April 15, 2024