GeezerVison is showing github.com — cli: allow `--test-[name/skip]-pattern` in `NODE_OPTIONS` · nodejs/node@1ca598c
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/cli.md +2Lines changed: 2 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3021,10 +3021,12 @@ one is included in the list below. |
3021 | 3021 | * `--snapshot-blob` |
3022 | 3022 | * `--test-coverage-exclude` |
3023 | 3023 | * `--test-coverage-include` |
| 3024 | +* `--test-name-pattern` |
3024 | 3025 | * `--test-only` |
3025 | 3026 | * `--test-reporter-destination` |
3026 | 3027 | * `--test-reporter` |
3027 | 3028 | * `--test-shard` |
| 3029 | +* `--test-skip-pattern` |
3028 | 3030 | * `--throw-deprecation` |
3029 | 3031 | * `--title` |
3030 | 3032 | * `--tls-cipher-list` |
|
Collapse file
Copy file name to clipboardExpand all lines: src/node_options.cc +4-2Lines changed: 4 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -670,7 +670,8 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() { |
670 | 670 | &EnvironmentOptions::test_runner_snapshots); |
671 | 671 | AddOption("--test-name-pattern", |
672 | 672 | "run tests whose name matches this regular expression", |
673 | | - &EnvironmentOptions::test_name_pattern); |
| 673 | + &EnvironmentOptions::test_name_pattern, |
| 674 | + kAllowedInEnvvar); |
674 | 675 | AddOption("--test-reporter", |
675 | 676 | "report test output using the given reporter", |
676 | 677 | &EnvironmentOptions::test_reporter, |
@@ -689,7 +690,8 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() { |
689 | 690 | kAllowedInEnvvar); |
690 | 691 | AddOption("--test-skip-pattern", |
691 | 692 | "run tests whose name do not match this regular expression", |
692 | | - &EnvironmentOptions::test_skip_pattern); |
| 693 | + &EnvironmentOptions::test_skip_pattern, |
| 694 | + kAllowedInEnvvar); |
693 | 695 | AddOption("--test-coverage-include", |
694 | 696 | "include files in coverage report that match this glob pattern", |
695 | 697 | &EnvironmentOptions::coverage_include_pattern, |
|