The “Repository analytics” report is available at project level. It shows the programming languages used in the repository’s default branch, and test code coverage and commit statistics for a selected branch or tag.
Report availability
The report is available to users who can download the project’s code. The project must have an initialized repository and at least one commit in its default branch. Wiki commits are not included in the report.
Viewing the report
- In the top bar, select “Search or go to…” and pick the project.
- In the project menu, go to “Analyze” → “Repository analytics”.
The report is also available at a direct address:
https://<HOST>/<GROUP>/<PROJECT>/-/graphs/<REF>/chartsTo view test coverage and commit statistics for another branch or tag, select it in the list next to “Commit statistics”. The programming languages chart always uses the default branch.
Programming languages
The “Programming languages used in this repository” chart shows the share of code in each programming language in the project’s default branch. The calculation uses code size in bytes and excludes generated and vendored code.
Test code coverage
The “Code coverage statistics” chart shows coverage data for the selected branch or tag for the last 90 days. Data appears after a pipeline with coverage data completes.
If more than one job group publishes coverage, select its name from the list above the chart. Point at a chart point to see the date and coverage percentage. When the chart has data, select “Download raw data (.csv)” to download it.
Coverage data is shown only to users who can view the project’s pipeline and job results. For a public project, anonymous users can view coverage when public pipelines are enabled.
Commit statistics
The “Commit statistics” section uses up to 2000 non-merge commits from the selected branch or tag. It shows the total number of commits, the daily average, and the number of authors, followed by charts of commits:
- by day of the month;
- by day of the week;
- by hour in UTC.