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
Add a coverage matrix tool that automatically discovers all @forgerock/*
package exports and measures test coverage across unit tests, type tests,
and e2e tests — with zero manual path maintenance.
Pipeline (all via Nx):
pnpm nx run @forgerock/coverage-matrix:coverage-report
- Discovers packages from workspace package.json exports fields
- Extracts public exports via TypeScript AST
- Collects V8 unit coverage from Vitest
- Collects V8 e2e coverage from Playwright's built-in CDP API
- Merges into a per-export coverage matrix
- Builds a Svelte dashboard deployable to GitHub Pages
E2E coverage uses Playwright's page.coverage.startJSCoverage() —
no instrumented builds, no Vite plugins, no Nx cache concerns.
The @forgerock/e2e-shared package provides a coverage fixture that
all 26 e2e test files import for automatic collection.
CI integration:
- Non-blocking coverage-report step in PR workflow
- Coverage summary posted as PR comment
- Dashboard deployed to GitHub Pages on merge to main
0 commit comments