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
Copy file name to clipboardExpand all lines: PLANS.md
+18-13Lines changed: 18 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,21 +2,26 @@
2
2
3
3
## Objective
4
4
5
-
Raise Codecov-reported overall coverage (README badge metric) from ~80% to >=95% while preserving correctness and keeping CI green.
5
+
Raise Codecov-reported merged coverage (unit + Playwright E2E LCOV, uploaded via CI to Codecov) to >=90% for both lines AND branches. CI gate (`scripts/check-coverage-threshold.mjs`) enforces both thresholds on `coverage/lcov-merged.info`.
6
6
7
-
## Baseline Snapshot (Codecov-relevant, merged web coverage)
7
+
## Coverage Architecture
8
8
9
-
Collection command: `PLAYWRIGHT_PORT=4273 npm run test:coverage:all`
9
+
-**Unit LCOV** (`coverage/lcov.info`): generated by `npm run test:coverage` (Vitest v8). Covers 81 source files. Uploaded as CI artifact to `web-coverage-merge` job.
10
+
-**E2E LCOV** (`coverage/e2e/lcov.info`): generated by `npx nyc report` from `.nyc_output/` JSON collected during Playwright runs (Istanbul instrumentation). Covers 259 source files (all of `src/**`).
11
+
-**Merged LCOV** (`coverage/lcov-merged.info`): produced by `npx lcov-result-merger` combining both LCOVs. Uploaded to Codecov. CI checks BOTH line AND branch >= 90%.
10
12
11
-
- Unit LCOV (`coverage/lcov.info`):
12
-
- Line: 94.35% (5580/5914)
13
-
- Branch: 90.16% (2153/2388)
14
-
- Playwright E2E LCOV (`coverage/e2e/lcov.info`):
15
-
- Line: 71.98% (11235/15609)
16
-
- Branch: 57.74% (5037/8724)
17
-
- Merged LCOV uploaded to Codecov (`coverage/lcov-merged.info`):
18
-
- Line: 80.81% (14767/18274)
19
-
- Branch: 64.87% (7195/11091)
13
+
## Baseline Snapshot (March 2026 — current branch)
0 commit comments