Skip to content

Commit

Permalink
Merge pull request #351 from codacy/doc/matching-file-paths-DOCS-222
Browse files Browse the repository at this point in the history
feature: Troubleshooting for coverage missing in Codacy UI DOCS-222
  • Loading branch information
Paulo Ribeiro authored Sep 23, 2021
2 parents 6125670 + 5df968b commit 3c86300
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/troubleshooting-common-issues.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,10 @@ If you're using PHPUnit version 5 or above to generate your coverage report, you
To change the output format replace the flag `--coverage-xml <dir>` with `--coverage-clover <file>` when executing `phpunit`.

See [PHPUnit command-line documentation](https://phpunit.readthedocs.io/en/latest/textui.html) for more information.

## No coverage data is visible on the Codacy UI

If the Codacy Coverage Reporter correctly uploaded your coverage report but the coverage data doesn't show up on the Codacy UI, 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`.
- Verify that the Codacy Coverage Reporter is uploading the coverage data for the [correct commit in the correct branch](index.md#commit-detection).

0 comments on commit 3c86300

Please sign in to comment.