#12876: major test workflow: enhance coverage infrastructure
docs
stale
Cluster:
Test Coverage Enhancements
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR adds a dedicated `Test Coverage` GitHub Actions workflow that runs Vitest coverage and uploads `coverage/lcov.info` to Codecov, expands Vitest’s coverage output to include HTML reports, and documents the test/coverage commands and directory structure in README + `docs/testing.md`. It also adds a handful of test-focused ignore patterns (coverage/nyc/vitest artifacts) and introduces convenience `pnpm` scripts for running specific Vitest configs (unit/extensions/gateway) and a coverage UI mode.
These changes plug into the existing Node/Vitest test runner (`scripts/test-parallel.mjs`) and CI, but the new workflow currently uses different Node/pnpm versions than the rest of the repo CI, and relies on an `nyc` CLI that is not installed- in this repository.
<h3>Confidence Score: 3/5</h3>
- This PR is close, but the new coverage workflow will fail or be non-deterministic until its toolchain and summary generation are fixed.
- Most changes are documentation and configuration, but `.github/workflows/test-coverage.yml` currently runs with Node 20 + pnpm 8 (mismatching repo requirements) and uses `npx nyc` without a pinned dependency, which will break or introduce flaky CI behavior.
- .github/workflows/test-coverage.yml
<!-- greptile_other_comments_section -->
<sub>(5/5) You can turn off certain types of comments like style [here](https://app.greptile.com/review/github)!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#15569: test: comprehensive test coverage expansion (57 new test files)
by tangcruz · 2026-02-13
77.8%
#8964: test(msteams): add comprehensive tests for graph-upload module
by RajdeepKushwaha5 · 2026-02-04
76.6%
#12684: Test: add missing unit tests for src/utils modules
by shaynhornik · 2026-02-09
75.9%
#9333: Tests: add test coverage for security/audit-fs.ts
by M00N7682 · 2026-02-05
75.1%
#3973: fix: enhance npm package integrity checks and include critical files
by YeSuX · 2026-01-29
75.1%
#11313: feat(ci): add staged release pipeline workflows (dormant)
by quotentiroler · 2026-02-07
74.4%
#11048: fix: address repository issues (env, author, CI comments, security ...
by cavula · 2026-02-07
74.2%
#7085: test: skip flaky workspace-paths & safe-bins tests on non-Linux/CI ...
by ThinkIbrokeIt · 2026-02-02
74.1%
#4137: [AI-assisted] test(cli): add missing test cases for parseDurationMs
by sind00 · 2026-01-29
73.3%
#17426: ci(formal): don't fail on fork PRs when PR comment is blocked
by mitre88 · 2026-02-15
73.2%