diff options
author | cjihrig <cjihrig@gmail.com> | 2023-04-28 09:13:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-28 13:13:53 +0000 |
commit | b31d587dc8c1b0f459243d2b96a17a7175c996cf (patch) | |
tree | ef121e26b4b2139e905d553a1fcd8a3815f1417a /doc | |
parent | a75959b1bc978082f647da5f7138f299f9cd23d8 (diff) | |
download | node-new-b31d587dc8c1b0f459243d2b96a17a7175c996cf.tar.gz |
test_runner: support combining coverage reports
This commit adds support for combining code coverage reports
in the test runner. This allows coverage to be collected for
child processes, and by extension, the test runner CLI.
PR-URL: https://github.com/nodejs/node/pull/47686
Fixes: https://github.com/nodejs/node/issues/47669
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/cli.md | 4 | ||||
-rw-r--r-- | doc/api/test.md | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/cli.md b/doc/api/cli.md index b4406bcec5..8daba8b46e 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -624,6 +624,10 @@ Use this flag to enable [ShadowRealm][] support. added: - v19.7.0 - v18.15.0 +changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/47686 + description: This option can be used with `--test`. --> When used in conjunction with the `node:test` module, a code coverage report is diff --git a/doc/api/test.md b/doc/api/test.md index 47cf679a10..61658b886c 100644 --- a/doc/api/test.md +++ b/doc/api/test.md @@ -428,10 +428,6 @@ if (anAlwaysFalseCondition) { The test runner's code coverage functionality has the following limitations, which will be addressed in a future Node.js release: -* Although coverage data is collected for child processes, this information is - not included in the coverage report. Because the command line test runner uses - child processes to execute test files, it cannot be used with - `--experimental-test-coverage`. * Source maps are not supported. * Excluding specific files or directories from the coverage report is not supported. |