The “Repository analytics” report is available at group level. It shows test code coverage for projects in the group and its subgroups. Coverage appears after a pipeline that reports it finishes on a project’s default branch.

Report availability

The report is available to group members with the “Reporter” role and above, and to users of the “Auditor” type. Guests and anonymous users cannot open it, including in a public group.

Viewing the report

  1. In the top bar, select “Search or go to…” and pick the group.
  2. In the group menu, go to “Analyze” → “Repository analytics”.

The report is also available at a direct address:

https://<HOST>/groups/<GROUP>/-/analytics/repository_analytics

Test code coverage

The “Test Code Coverage” section shows data from the most recent day that has coverage data:

  • “Projects with Coverage” — number of projects with coverage data;
  • “Average Coverage by Job” — mean coverage across the jobs that report it;
  • “Jobs with Coverage” — number of jobs that report coverage.

The “Last updated” label names that day.

Average test coverage

The “Average test coverage” chart plots the mean coverage of all jobs by day for the last 30 days. Days without coverage data have no point on the chart.

Point at a chart point to see its date, the coverage percentage, and the number of jobs with coverage.

Latest test coverage results

The “Latest test coverage results” table shows up to 20 projects with coverage by default. Rows are sorted alphabetically. To replace this set, select one or more projects in the “Projects” list. The list includes projects in subgroups.

Column Content
“Project” Project name with a link to its coverage chart
“Coverage” Mean coverage of the project’s jobs
“Coverage Jobs” Number of jobs that report coverage
“Last Update” Date of the most recent coverage data

Downloading coverage data

The report can export historical coverage data for all projects in the group and its subgroups, or for selected projects. The CSV file contains up to 1000 most recent records, ordered from newest to oldest. Each row holds the date, the job group name, the project name, and the coverage percentage.

To download a CSV file:

  1. Select “Download historic test coverage data (.csv)”.
  2. In the “Projects” list, select projects or leave “All projects”.
  3. In “Date range”, select 7, 14, 30, 60, or 90 days. The default is 30 days.
  4. Select “Download test coverage data (.csv)”.