--experimental-test-coverage


版本历史
版本变更
v20.1.0

该选项可与 --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 によって変換されたページ (->オリジナル) /