test_runner: option to skip tests from command-line #52508
Labels
cli
Issues and PRs related to the Node.js command line interface.
feature request
Issues that request new features to be added to Node.js.
test_runner
Issues and PRs related to the test runner subsystem.
What is the problem this feature will solve?
For some environments, one or more tests should be skipped because they're testing functionality that's not supported.
For example, testing SSL connectivity in an environment that deliberately does not support it.
What is the feature you are proposing to solve the problem?
Similar to
--test-name-pattern
, there should be a option to specify a pattern to skip a subset of tests.Suggestion:
--skip-name-pattern
– of course, like its related option, it can be specified multiple times.What alternatives have you considered?
The alternative is to encode this using for example environment variables, rigging up tests using
{ skip: <runtime-skip-condition> }
.But this is less obvious and arguably less flexible.
The text was updated successfully, but these errors were encountered: