Skip to content

Commit

Permalink
Merge pull request #426 from codacy/doc/suggest-rebase-branch
Browse files Browse the repository at this point in the history
doc: Suggest rebasing branch to fix missing coverage variation
  • Loading branch information
Paulo Ribeiro authored Nov 9, 2022
2 parents 81482dc + eb6a1c2 commit 646327a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,11 @@ Because of this, to ensure that all code coverage metrics are available on Codac
!!! note "Example"
The example below shows that after pushing a commit that correctly sets up coverage on the main branch:

- Codacy will report coverage metrics for all subsequent commits and pull requests relative to the main branch
- Codacy won't report coverage metrics for commits and pull requests that are relative to older branches where the coverage setup wasn't performed yet
- Codacy will report coverage metrics for all subsequent commits and pull requests relative to the main branch.

- Codacy won't report coverage metrics for commits and pull requests that are relative to older branches where the coverage setup wasn't performed yet.

To solve this issue, you can rebase the old feature branch to update the common ancestor commit to one that already has coverage data.

![Setting up coverage on the main branch](images/coverage-validate.png)

Expand Down

0 comments on commit 646327a

Please sign in to comment.