Skip to content

test_runner: option to skip tests from command-line #52508

Description

@malthe

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliIssues and PRs related to the Node.js command-line interface.feature requestIssues requesting new Node.js features.test_runnerIssues and PRs related to the test runner subsystem.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions