--experimental-test-coverage


版本历史
版本变更
v20.1.0, v18.17.0

This option can be used with --test.

v19.7.0, v18.15.0

新增于: v19.7.0, v18.15.0

当与 node:test 模块结合使用时,会在测试运行器输出中生成代码覆盖率报告。如果没有运行任何测试,则不会生成覆盖率报告。有关更多详细信息,请参阅 从测试中收集代码覆盖率 的文档。

🌐 When used in conjunction with the node:test module, a code coverage report is generated as part of the test runner output. If no tests are run, a coverage report is not generated. See the documentation on collecting code coverage from tests for more details.

AltStyle によって変換されたページ (->オリジナル) /