Line

You are reading the unreleased docs (next). See latest (v0.9)

ui/client/features/pages-editor/hooks/useTestsCoverage

Cockpit client (features), next. Source: ui/client/features/pages-editor/hooks/useTestsCoverage.tsx.

Type Aliases#

PageTestsCoverage#

PageTestsCoverage = { data: TestsListing; ok: true; } | { error: string; ok: false; }

Defined in: ui/client/features/pages-editor/hooks/useTestsCoverage.tsx:6

Functions#

useTestsCoverage()#

useTestsCoverage(feature): PageTestsCoverage | null

Defined in: ui/client/features/pages-editor/hooks/useTestsCoverage.tsx:12

Inspector "Tests" section: the open page's FEATURE's scenario coverage, from the same /api/tests/:feature the standalone Tests screen already reads — no new coverage engine. Coverage is a property of the feature's workflow, not of which page file happens to be open, so this refetches on feature change only (unlike useImpact, which is per-file).

Parameters#

feature

string

Returns#

PageTestsCoverage | null