mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
cli: allow --test-[name/skip]-pattern in NODE_OPTIONS
PR-URL: https://github.com/nodejs/node/pull/53001 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
This commit is contained in:
1 parent
8d37584874
commit
59da1df009
2 files changed
+6
-2
No files matched your search
@@ -2999,10 +2999,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`
|
||||
|
||||
+4
-2
@@ -658,7 +658,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,
|
||||
@@ -677,7 +678,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,
|
||||
|
||||
Reference in new issue
Block a user