Skip to content

Commit

Permalink
Merge pull request #414 from codacy/doc/fix-troubleshoot-file-paths-C…
Browse files Browse the repository at this point in the history
…Y-6365

doc: Move mismatched file paths troubleshooting to Pending state CY-6365
  • Loading branch information
Paulo Ribeiro authored Sep 8, 2022
2 parents 9db7013 + 88116e2 commit 13d954e
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,14 @@ Follow these instructions to validate that your coverage setup is working correc
Make sure that after uploading all partial reports you <a href="uploading-coverage-in-advanced-scenarios/#multiple-reports-sequence">send the <code>final</code> notification</a>.
</td>
</tr>
<tr>
<td>
The file paths in the coverage report don't match the ones on the repository <strong>Files</strong> page on Codacy.
</td>
<td>
Make sure that the file paths included in your coverage report are relative to the root directory of your repository. For example, <code>src/index.js</code>.
</td>
</tr>
<tr>
<td>
The uploaded coverage data only includes information for files that are <a href="../repositories-configure/ignoring-files/">ignored on Codacy</a>.
Expand All @@ -363,17 +371,14 @@ Follow these instructions to validate that your coverage setup is working correc
![Coverage metrics displayed on Codacy](images/coverage-codacy-ui.png)
If Codacy doesn't display the coverage metrics for the latest commits or pull requests (represented by `-`), please validate the following:
- Make sure that the file paths included in your coverage reports are relative to the root directory of your repository. For example, `src/index.js`.
- To display the coverage variation metric in pull requests, make sure that you have uploaded coverage data for both:
If Codacy doesn't display the coverage variation metric in pull requests (represented by `-`), make sure that you have uploaded coverage data for both:

- The common ancestor commit of the pull request branch and the target branch
- The last commit in the pull request branch
- The common ancestor commit of the pull request branch and the target branch
- The last commit in the pull request branch

The following diagram highlights the commits that must have received coverage data for Codacy to display the coverage variation metric on a pull request:
The following diagram highlights the commits that must have received coverage data for Codacy to display the coverage variation metric on a pull request:

![Commits that must have received coverage data](images/coverage-pr-commits.png)
![Commits that must have received coverage data](images/coverage-pr-commits.png)

!!! note "Need help?"
If you need help setting up coverage on your repository please contact us at <mailto:[email protected]> including the following information:
Expand Down

0 comments on commit 13d954e

Please sign in to comment.