From eb6a1c2c825af278e1af0c159f3e2d2f747cbcce Mon Sep 17 00:00:00 2001 From: Paulo Ribeiro Date: Wed, 9 Nov 2022 12:18:02 +0000 Subject: [PATCH] doc: Suggest rebasing branch to fix missing coverage variation --- docs/index.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/index.md b/docs/index.md index 648f4635..9598a37d 100644 --- a/docs/index.md +++ b/docs/index.md @@ -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)