You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(analytics): the overview's "Test Coverage" tile shows the testability quality score, not coverage #21395
The Codebase Analytics overview fills its "Test Coverage" tile from breakdown.testability of /api/quality/health-score and renders it with a % suffix. Testability is a code-quality sub-score, not measured test coverage, so the tile states something the data does not say.
Where: autobot-frontend/src/composables/analytics/codeQualityOverview.ts (buildCodeQuality, introduced by the #20498 fix, which kept the existing mapping and only removed the invented 50% default), rendered by CodebaseOverviewPanel.vue and AnalyticsGrid.vue.
Found while reviewing the #20498 fix; out of that issue's scope.
Acceptance criteria
The tile is either labelled as what it shows (testability score, no % implying coverage) or is fed by a real coverage figure from an endpoint that measures it.
A test pins the label/value pairing against the real response shape.
Tile labelled for what it shows, no %, or fed by a real coverage figure
Owner decision (2026-11-15): relabel "Testability", drop %. en.jsonanalytics.codebase.quality.testability = "Testability" (and analytics.grid.testability); CodebaseOverviewPanel.vue:100-101 and AnalyticsGrid.vue:93-94 render {{ codeQuality.testability ?? notAvailable }} with no %; codeQualityOverview.ts field renamed testability with a doc comment that it is not coverage
yes
A test pins the label/value pairing against the real response shape
CodeQualityTile.testability.test.ts (both cards): asserts label "Testability", text contains 61 and not 61%, not "Test Coverage". codeQualityOverview.test.ts "reads testability from breakdown.testability ..." asserts testability === 61 from the /api/quality/health-score shape and no test_coverage property
yes
No value shows not available
Same tile test "a missing figure reads not available" for both cards; buildCodeQuality returns null for a missing breakdown.testability (existing "reports missing values as null" test kept)
yes
Tests are present in the merged code; the train's CI (#21630) shows frontend-tests and run-frontend-test / Frontend Unit and Integration Suite passing. Nothing left open.
Activity
mrveiss commentedon Nov 15, 2026
Owner decision (2026-11-15): relabel the tile "Testability" and drop the % sign, so it says what it measures; no coverage source is wired.
github-actions commentedon Nov 15, 2026
Landed via the merge train (#21630, merge
7a3a8b55bd) via #21620mrveiss commentedon Nov 15, 2026
Closure evidence (main 7a3a8b5)
%, or fed by a real coverage figure%.en.jsonanalytics.codebase.quality.testability= "Testability" (andanalytics.grid.testability);CodebaseOverviewPanel.vue:100-101andAnalyticsGrid.vue:93-94render{{ codeQuality.testability ?? notAvailable }}with no%;codeQualityOverview.tsfield renamedtestabilitywith a doc comment that it is not coverageCodeQualityTile.testability.test.ts(both cards): asserts label "Testability", text contains61and not61%, not "Test Coverage".codeQualityOverview.test.ts"reads testability from breakdown.testability ..." assertstestability === 61from the/api/quality/health-scoreshape and notest_coveragepropertybuildCodeQualityreturnsnullfor a missingbreakdown.testability(existing "reports missing values as null" test kept)Tests are present in the merged code; the train's CI (#21630) shows
frontend-testsandrun-frontend-test / Frontend Unit and Integration Suitepassing. Nothing left open.fix(analytics): label the overview testability figure as Testability,…