-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--experimental-test-coverage
cannot be used with --test
#47669
Comments
#47651 mentions it is the first step towards addressing this. |
This is a documented limitation which looks like it's being worked on. Lines 423 to 432 in 7b39e80
|
FWIW, I should have a PR to address this soon - possibly in the next day or so. |
Thanks for clarifying, subscribed to that PR. |
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: #47686 Fixes: #47669 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
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: nodejs#47686 Fixes: nodejs#47669 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
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: nodejs#47686 Fixes: nodejs#47669 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
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: nodejs#47686 Fixes: nodejs#47669 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
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: #47686 Fixes: #47669 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
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: #47686 Fixes: #47669 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
will it be added in version 18? |
It's already included. |
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: #47686 Fixes: #47669 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
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: nodejs#47686 Fixes: nodejs#47669 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
Hi guys, any release date of the fix for v18? |
Version
v20.0.0
Platform
Linux executive 5.19.0-40-generic #41-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 23 21:39:15 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Subsystem
test
What steps will reproduce the bug?
Running
node --test
lookup for tests in the current project folder. When adding the--experimental-test-coverage
flag I get the errornode: --experimental-test-coverage cannot be used with --test
, and if I remove the--test
flag and left the--experimental-test-coverage
flag alone, it throws me to a REPL without looking for the tests. Only way to run the tests with code coverage is by executing it explicitly withnode --experimental-test-coverage test.js
, passing test files as arguments.How often does it reproduce? Is there a required condition?
Always.
What is the expected behavior? Why is that the expected behavior?
When running
node --experimental-test-coverage
, it should implicitly call--test
and look for the test files, or allow to have both--test
and--experimental-test-coverage
flags in the same command.What do you see instead?
Error
node: --experimental-test-coverage cannot be used with --test
, or a REPL if I remove the--test
flag.Additional information
No response
The text was updated successfully, but these errors were encountered: