Skip to content

test(frontend): raise coverage across api, tables, catalog, groups, pages - #218

Merged
mariusmm merged 5 commits into
feature/frontend-coverage-boostfrom
feature/frontend-coverage-modules
Aug 3, 2026
Merged

test(frontend): raise coverage across api, tables, catalog, groups, pages#218
mariusmm merged 5 commits into
feature/frontend-coverage-boostfrom
feature/frontend-coverage-modules

Conversation

@mariusmm

@mariusmm mariusmm commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Domain API unit tests with stubbed fetch (dashboard, auth, requirements, notifications, optional lists, sample CRUD)
  • Smoke tests for RequirementsTable, VerificationsTable, and NotificationPanel
  • Catalog template coverage (ProjectCatalogLayout, Categories, CustomFields, RequirementStatuses)
  • Groups list/create/view/members flows
  • Mid-size pages: Dashboard, Baselines, BaselineDetail, View/CreateVerification (matrix picker mocked)

Builds on #217 (feature/frontend-coverage-boost).

Coverage result (local)

Before (boost) After
Lines 9.3% 39.4% (5,334 / 13,523)
Functions 34.9% 52.2%
Tests 125 187

Notable module lifts:

  • api 7% → 40% lines / 37% funcs
  • components 10% → 61%
  • pages/catalog 0% → 45%
  • pages/groups 0% → 77%
  • pages 7.5% → 23%

Test plan

  • cd frontend && npm test (187 green)
  • CI frontend-tests posts updated module coverage comment
  • No frontend coverage gate

Made with Cursor

marius added 5 commits August 3, 2026 23:15
Exercise dashboard mapping, auth/publicAuth, requirements patch/query
builders, optional lists, notifications, baselines, and sample CRUD
header shapes to lift api function coverage.
…tificationPanel

Exercise load/error/filter/list/CSV and inline edit paths for the large
tables, plus notification open/mark/navigate/Escape flows.
Cover ProjectCatalogLayout tabs, Categories create/save/delete,
CustomFields enum path, and RequirementStatuses system vs editable rows.
Cover filter/empty/error, CSRF-gated create, owner delete/create-project,
and member add/remove flows.
Add smoke tests for Dashboard stats, Baselines create/CSRF,
BaselineDetail snapshots, ViewVerification edit gates, and
CreateVerification submit (matrix picker mocked).
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

Frontend Code Coverage

Frontend SPA coverage (by module)

Module Line Rate Branch Rate Function Rate Health
api 39.6% (371 / 937) 88.7% 37.3%
components 61.0% (1627 / 2668) 61.6% 44.2%
components/graph 48.1% (50 / 104) 100.0% 33.3%
components/reports 0.0% (0 / 20) 100.0% 100.0%
components/table 100.0% (48 / 48) 100.0% 100.0%
context 39.7% (48 / 121) 55.0% 50.0%
hooks 49.2% (98 / 199) 78.1% 81.8%
lib 100.0% (57 / 57) 100.0% 100.0%
pages 23.3% (1581 / 6792) 67.9% 66.0%
pages/catalog 45.0% (663 / 1473) 65.2% 48.9%
pages/groups 77.4% (673 / 870) 67.5% 69.2%
src (root) 9.4% (12 / 128) 93.8% 66.7%
types 100.0% (0 / 0) 100.0% 100.0%
utils 100.0% (106 / 106) 98.3% 100.0%
Summary 39.4% (5334 / 13523) 68.8% 52.2%

Generated from Vitest @vitest/coverage-v8 (frontend/src).

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

Code Coverage

Package Line Rate Complexity Health
marreq-core.src.validation 96% 0
marreq-core.src 67% 0
marreq-core.src.routes 48% 0
marreq-cloud.src.api 78% 0
marreq-cloud.src.fairings 100% 0
marreq-cloud.src.services 91% 0
marreq-core.src.diff 100% 0
marreq-core.src.helper_functions 93% 0
marreq-core.src.importers 5% 0
marreq-core.src.models 81% 0
marreq-cloud.src 72% 0
marreq-core.src.reqif 83% 0
marreq-core.src.services 90% 0
marreq-core.src.fairings 89% 0
marreq-core.src.services.semantic_search 75% 0
marreq-core.src.api 77% 0
marreq-core.src.auth 91% 0
marreq-core.src.auth.guards 46% 0
marreq-core.src.deployment 83% 0
marreq-core.src.repository.cache 100% 0
marreq-core.src.auth.rate_limiter 94% 0
marreq-core.src.repository 43% 0
marreq-core.src.generators 0% 0
marreq-server.src 62% 0
Summary 75% (22695 / 30307) 0

@mariusmm
mariusmm merged commit c806850 into feature/frontend-coverage-boost Aug 3, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant