Skip to content

bug(analytics): the overview's "Test Coverage" tile shows the testability quality score, not coverage #21395

Closed

Description

@mrveiss

Problem

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

Refs #20498

Activity

  1. mrveiss commented on Nov 15, 2026

    @mrveiss
    OwnerAuthor

    Owner decision (2026-11-15): relabel the tile "Testability" and drop the % sign, so it says what it measures; no coverage source is wired.

  2. github-actions commented on Nov 15, 2026

    @github-actions
    Contributor

    Landed via the merge train (#21630, merge 7a3a8b55bd) via #21620

  3. added
    needs-ac-evidenceClosed by a merge keyword; awaits an AC evidence table comment (#19520)
    on Nov 15, 2026
  4. mrveiss commented on Nov 15, 2026

    @mrveiss
    OwnerAuthor

    Closure evidence (main 7a3a8b5)

    AC Evidence Ticked?
    Tile labelled for what it shows, no %, or fed by a real coverage figure Owner decision (2026-11-15): relabel "Testability", drop %. en.json analytics.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.

  5. removed
    needs-ac-evidenceClosed by a merge keyword; awaits an AC evidence table comment (#19520)
    on Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfrontendphase:M4.11Safety net: tests and analysers reach the whole treepriority: low

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions