-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Closed
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.test_runnerIssues and PRs related to the test runner subsystem.Issues and PRs related to the test runner subsystem.
Description
What is the problem this feature will solve?
coverage-path
: to specify the path from which the coverage summary should be collected. and
coverage-ignore-path
: to specify the files and directories that should be ignored while collecting coverage.
these can be two cli flags also, passed along with --test-coverage
flag.
something like this:
node --test --experimental-test-coverage --coverage-path='./src/**' --coverage-ignore='./src/utils/**' index.test.mjs
What is the feature you are proposing to solve the problem?
currently, there is no way to include or exclude a file or directory from test coverage.
What alternatives have you considered?
No response
tbeseda and electrovir
Metadata
Metadata
Assignees
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.test_runnerIssues and PRs related to the test runner subsystem.Issues and PRs related to the test runner subsystem.