diff --git a/doc/api/cli.md b/doc/api/cli.md index 7133a7a369b..187ac88338f 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -3021,10 +3021,12 @@ one is included in the list below. * `--snapshot-blob` * `--test-coverage-exclude` * `--test-coverage-include` +* `--test-name-pattern` * `--test-only` * `--test-reporter-destination` * `--test-reporter` * `--test-shard` +* `--test-skip-pattern` * `--throw-deprecation` * `--title` * `--tls-cipher-list` diff --git a/src/node_options.cc b/src/node_options.cc index 068f85720f2..441ffe28440 100644 --- a/src/node_options.cc +++ b/src/node_options.cc @@ -670,7 +670,8 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() { &EnvironmentOptions::test_runner_snapshots); AddOption("--test-name-pattern", "run tests whose name matches this regular expression", - &EnvironmentOptions::test_name_pattern); + &EnvironmentOptions::test_name_pattern, + kAllowedInEnvvar); AddOption("--test-reporter", "report test output using the given reporter", &EnvironmentOptions::test_reporter, @@ -689,7 +690,8 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() { kAllowedInEnvvar); AddOption("--test-skip-pattern", "run tests whose name do not match this regular expression", - &EnvironmentOptions::test_skip_pattern); + &EnvironmentOptions::test_skip_pattern, + kAllowedInEnvvar); AddOption("--test-coverage-include", "include files in coverage report that match this glob pattern", &EnvironmentOptions::coverage_include_pattern,