test_runner: tracking issue for code coverage stabilization
維護者通常 1 天內回覆
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 25/100
- Issue 類型
- 功能
- 描述清晰度
- 需要釐清
- 活躍度
- 冷清
- 技術堆疊
- javascript, nodejs
- 領域
- cli, testing-qa
研究方向
從提議的穩定化檢查清單開始,並執行覆蓋率命令 node --test --experimental-test-coverage。剩餘核心測試工作的指定進入點是 test/parallel/test-runner-coverage.js;完成工作取決於對列出的問題進行分類處理並滿足多部分退出標準,而不是進行一次孤立的變更。
由索引模型根據 Issue 內容生成。
描述
This issue tracks the remaining work to move node:test code coverage out of experimental.
The previous tracker, #53924 (previous stabilization tracker), was closed after narrowing the formal remaining item to replacing or aliasing --experimental-test-coverage with --test-coverage. There are still open issues and PRs that look relevant to stabilization, so it would be useful to have an umbrella issue again.
Scope
This is about test runner coverage enabled with:
node --test --experimental-test-coverage
This is not intended to track every NODE_V8_COVERAGE issue, only the ones that materially affect confidence in node:test coverage.
Proposed stabilization checklist
Likely blockers
- Add or alias a stable
--test-coverageenable flag- historical context: #53924 — previous stabilization tracker
- Fix coverage correctness for
isolation=none- issue: #60023 — coverage with
isolation=nonedoes not work correctly - PR: #63079
- issue: #60023 — coverage with
- Fix major sourcemap correctness bugs
- #54753 — false missing coverage for TypeScript
import type - #55054 — sourcemap coverage can fail for remapped files
- #54753 — false missing coverage for TypeScript
- Confirm CLI and
run()API coverage behavior are aligned for common cases- related: #60023 —
isolation=none/ API coverage mismatch - related PR: #63079
- related: #60023 —
- Re-enable the skipped isolation coverage test in core
test/parallel/test-runner-coverage.js
Strong candidates to resolve before stabilization
- Review performance of built-in coverage
- #55103 — built-in coverage is reported as significantly slower than existing tooling
- Finalize default include/exclude behavior
- issue: #63397 — default test exclusion does not match dotfiles
- PR: #63401
- Make reporter behavior consistent where coverage is involved
- #60884 — dot reporter does not surface coverage output/failures clearly
- #61586 — ignored lines and lcov branch data are inconsistent
- PR: #63443
Likely follow-up work unless parity is required first
- Decide whether statement coverage is required before stabilization
- issue: #54530 — add statement coverage support
- PR: #62340
- Decide whether untouched files matched by include globs should report as 0%
- #58887 — support reporting untested matched files as 0% covered
- Decide whether excluding empty lines should be supported
- #60996 — add an option to exclude empty lines from coverage
Open issues most directly related to test coverage
Correctness / stabilization
- #60023 — Test runner with
isolation=nonedoes not work with coverage - #54753 —
--experimental-test-coveragefalsely reports missing coverage where TS source isimport type - #55054 — Could not report code coverage for file in sourcemap
- #55103 — Slow performances when running tests with
--experimental-test-coverage
Reporting / exclusion / polish
- #61586 —
node:coverageignore comments exclude DA but leave BRDA in lcov output - #63397 — default
--test-coverage-excludebehavior does not apply to dotfiles - #60884 — dot reporter should print coverage failures/output
- #58887 — report 0% coverage for untested files matched by include globs
- #60996 — add option to exclude empty lines from coverage report
Coverage model / parity
- #54530 — support statement coverage
Open PRs to watch
- #63079 — test_runner: support coverage with isolation:'none' via run() API
- #63401 — test_runner: match dotfiles in default coverage exclude
- #62340 — test_runner: add statement coverage support
- #63443 — test_runner: print coverage report with dot reporter
Lower-level issues worth watching
These are broader than node:test, but may still matter if they show up in test runner coverage behavior:
- #53652 — incorrect uncovered block around some
switch/ case patterns - #41387 — inconsistent coverage information when loaders are used
- #46378 —
NODE_V8_COVERAGEbehaves inconsistently with workers - #35212 — coverage may not be saved on SIGINT/SIGTERM
- #44364 —
NODE_V8_COVERAGEcan run OOM when many scripts are compiled - #35783 — V8 coverage API next steps
Proposed exit criteria
Coverage can likely move out of experimental when:
--test-coverageexists as the stable entry point.isolation=nonecoverage correctness is fixed.- The major sourcemap correctness bugs are resolved.
- CLI and
run()API behavior match for common coverage use cases. - The remaining open issues are triaged into:
- blocker for stabilization
- follow-up semver-minor work
- unrelated to stabilization
Note
This issue is meant to restore a single place to track stabilization work now that #53924 is closed, not to block future semver-minor improvements after stabilization.
Disclaimer: I used AI to compile this list, then edited by hand.
- 主要語言
- JavaScript
- 星號
- 122k
- 分支
- 38.4k
- 平均合併
- 3 天 23 小時
- 30 天內合併 PR
- 274
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
nodejs/node 的其他 Issue
-
build / doc: missing platform and toolchain info for `linux-x64-musl`可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉alpine build doc
難度 2/5 1-3 小時 新手友好度 75/100
維護者通常 1 天內回覆
-
[Docs] `process.loadEnvFile()` does not document behaviour when variables already exist可能已有人在做 @Sepandard 於 9 天前認領。 未關閉doc
難度 1/5 1 小時以內 新手友好度 90/100
維護者通常 1 天內回覆
-
Stream.prototype.forEach will block in first promise in queue before read more chunk可能已有人在做 @mmustafasenoglu 於 10 天前認領。 未關閉doc
難度 2/5 1-3 小時 新手友好度 65/100
維護者通常 1 天內回覆
-
build
難度 1/5 1 小時以內 新手友好度 88/100
維護者通常 1 天內回覆
-
`TextEncoder.encodeInto()` underfills the destination for some non-ASCII text可能已有人在做 @XadillaX 於 23 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 84/100
nodejs/node#65994 · 2 則留言 · 2 個 reaction ·
維護者通常 1 天內回覆
相似的 Issue
-
automated issue report
難度 2/5 1-3 小時 新手友好度 62/100
lirantal/discoprint#36 ·
維護者通常 1 天內回覆
-
accepting PR Content:HTML
難度 1/5 1 小時以內 新手友好度 88/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 82/100
txn2/mcp-data-platform#2030 ·
維護者通常 1 天內回覆
-
ci hacktoberfest help wanted size/small type/bug type/docs type/enhancement up-for-grabs
難度 2/5 1-3 小時 新手友好度 88/100
Redo-San/RedoSan-Authenticity#527 ·
維護者通常 1 天內回覆