From b31d587dc8c1b0f459243d2b96a17a7175c996cf Mon Sep 17 00:00:00 2001 From: cjihrig Date: Fri, 28 Apr 2023 09:13:53 -0400 Subject: 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 Reviewed-By: Matteo Collina --- doc/api/cli.md | 4 ++++ doc/api/test.md | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/api') 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. -- cgit v1.2.1