Skip to content
GitHub

GuideQuality

Coverage

In the panel: Quality › Coverage/quality/coverageNeeds analyses:read

See how much of every repository’s code its tests cover, which repositories fall below their target and which files and folders need tests first.

In the panel · Quality › Coverage
CoverageMy teamsFreshness: anyBelow 60% only
64.2% median lines51.8% median branches7 below 60% target312 untested files4 not measured2 no tests by design
Repository Lines Branches Change Untested files Freshness
acme/legacy-portal 38.4% Below 60% target 22.1% −1.2 pt 96 of 240 Over a month old
acme/admin-ui 57.0% Below 60% target 44.9% +3.5 pt 41 of 388 Behind HEAD
acme/checkout-web 82.3% 71.0% +0.4 pt 12 of 506 Current
acme/widget-kit 91.6% 85.2% 0.0 pt 2 of 117 Current
acme/billing-api Not measured — — — Not measured
acme/brand-assets No tests by design — — — No tests by design

Lowest line coverage first; repositories without a record follow as Not measured, and repositories with no tests by design come last.

One row per repository you can read, from its newest coverage record. Repositories that were never measured stay in the table as Not measured, so gaps are visible. Opening the page never runs tests.

Column Meaning
Repository Opens the repository hub at Quality › Coverage.
Lines Share of code lines covered: good from 80%, bad below 50%. A Below N% target tag uses the row’s own target. The bar splits covered, uncovered and lines in files no test loaded.
Branches Share of branches taken by the tests.
Trend A sparkline of the last 12 records.
Change Points gained or lost since the previous record.
Untested files Source files no test loaded, of all source files.
Freshness Whether the record is current, behind the default branch’s HEAD, or more than a week or a month old, with its age and short commit.

The toolbar narrows the table: the scope switch (My teams folds other teams’ rows into one row with their median and how many are below target; its team picker filters by team), the Freshness filter (it also offers No tests by design) and Below 60% only, which names the organization-wide target. The search in the header matches a path or team. Every column but the sparkline sorts, and filters live in the URL, so a link shows the same view.

The strip counts the rows in scope: median line and branch coverage of measured repositories, how many are below their target, untested files, and repositories per freshness state. Repositories with no tests by design are left out of every figure and counted in their own cell.

Every repository should reach a line coverage target, 60% unless a setting says otherwise. Teams, folders and repositories may set their own; the table footer names the organization-wide one.

  1. Open Configure on the page, or Settings › Analyzers › coverage.
  2. Add or edit an entry for everything, a team, a path pattern or a repository, and set target to a percentage from 0 to 100.
  3. Save. The table and repository health judge coverage by the new target at once; the target changes nothing in how tests run.
In the panel · Settings › Analyzers › coverage
ScopePath · acme/round/**
target75Line coverage in percent, 0–100.
excludesrc/generated/**, **/*.stories.tsxGlobs of files left out of coverage.
componentsCount component files (.tsx, .jsx). Off by default.
untestedonFiles no test loaded count as fully uncovered.
filecoverage/lcov.infoRead this report instead of running the tests.

An entry for one folder; the most specific entry wins.

analyzers.coverage · one repository
{
"target": 70,
"exclude": ["src/generated/**"],
"components": true
}

Click a row, or move with J / K and press ↵. A side sheet opens with the line share as a progress bar, the freshness, line, branch and function shares, the change and the coverage bar with its legend.

In the panel · Quality › Coverage › acme/admin-ui
COV-2207acme/admin-ui

Below target

2 of 38Open as page

Run coverage

Freshness
Behind HEAD · 5 days ago · 3f9c2a1
Lines
57.0% · +3.5 pt
Branches
44.9%
Functions
61.3%
Tools
vitest
Changed files
68.2% covered
Target
60%
Trigger
Schedule · tests-weekly
BreakdownFilesChangesExclusions2
Tab What it shows
Breakdown The record (commit and age, HEAD when behind, tools, coverage of changed files, files and files without tests, target, trigger and last run), then coverage per workspace package or top-level folder, lowest first.
Files The files with the most uncovered lines.
Changes Files whose line coverage moved by 5 points or more since the previous record.
Exclusions The globs left out of coverage for this repository and the scope that set them.

Open as page turns the sheet into the full analysis record, with a treemap of coverage by folder. ⋯ › Open repository goes to the repository hub.

Generated code, fixtures or vendored files drag coverage down without telling you anything. Leave them out:

  1. Open the repository’s sheet and go to Files.
  2. Click Exclude on a file. A dialog offers globs for it: the file itself, its extension in that folder, each parent folder, or the name anywhere. Pick one or type your own.
  3. Confirm. The glob is added to the repository’s own analyzers.coverage entry.

To add a glob without starting from a file, use Add pattern on the Exclusions tab. Each glob there has a remove button. Removing a glob that a broader scope set copies that list into a repository entry without it, so the broader scope keeps its own.

In the panel · Quality › Coverage › Exclude
Exclude from coverage
Filesrc/generated/api-client.ts
Patternsrc/generated/**Applies to acme/admin-ui from the next run.
CancelExclude

Some repositories have nothing to test: a brand asset bundle, a config repository, a docs site. Mark them so they stop counting as below target.

  1. Open the repository’s sheet, then ⋯ › Mark as no tests by design…. The empty state and the hub section offer the same action.
  2. Give the reason and confirm.

The row then reads No tests by design (the reason shows as a tooltip), never counts as below target and sorts last. The sheet shows a notice with the reason and the scope that set it instead of Run coverage. Agents get the same signal: reviews stop asking for tests there, and their rules state it as a policy.

To undo it, click Expect tests again in the notice. When a team or folder entry marked the repository, the button names the broader scope it overrides.

Coverage runs once a week, on Wednesday nights, in the default tests-weekly schedule. Run coverage in the sheet runs it at once for one repository (it needs analyses:run).

A run installs the project’s JavaScript dependencies when the checkout has none, builds workspace packages whose build output is missing, then runs the primary test framework of each language with coverage: bun test, vitest, jest, c8 with mocha, node --test, pytest-cov or go test. Failing tests are fine as long as a report is written. Source files no test loaded count as fully uncovered.

Nothing on these pages calls an AI model.

The repository hub’s Quality › Coverage shows the headline, the trend, Full record, Run coverage and the same four tabs for that repository. Until a record exists it shows Run coverage alone. Its header links Open in Quality back to the fleet view.