Coverage Files page#
The Coverage Files page displays the current code coverage information for each analyzed file in your enabled repository branches.
By default, the page lists the files 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 files on other branches.
Codacy displays the files in alphabetical order by default, but you can sort the list by each column to help you identify which files need more test coverage.
Note
You can use the Codacy API to generate reports or obtain coverage metrics for the files in your repositories in a more flexible way.
Use the search box to filter the list and find specific files:
File details#
Click a specific file to see more detailed coverage information for that file, including:
- Coverable lines: Source lines of code that can be covered by tests
- Covered lines: Source lines of code that are covered by tests
- Coverage: Percentage of coverable source lines of code that are covered by tests
The page also shows the source code of the file and identifies which lines of code are covered by tests (green background) or not (red background).
Why are some files missing?#
The Files page only displays files in your repository that were analyzed by Codacy. This means that some of your files may be missing from the list, for example:
-
You're viewing the incorrect branch
Not all files may exist in all branches of your repositories. Make sure that you're displaying files for the correct branch.
-
The file might be ignored
The Files page doesn't display ignored files that aren't meant to be analyzed, including the files that Codacy ignores by default.
-
The file has an extension that is not on the list of supported extensions
Codacy supports a list of file extensions associated with each language. Codacy doesn't analyze or display files with extensions that aren't associated with a language.
-
The file might be too big
Codacy doesn't analyze or display files that are over a certain size. Read more details for information on how to overcome this limit.
See also#
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?
255 characters left
We're sorry to hear that. Please let us know what we can improve:
255 characters left
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.