mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 21:58:48 +02:00
test_runner: add --test-skip-pattern cli option
PR-URL: https://github.com/nodejs/node/pull/52529 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
This commit is contained in:
parent
3790d524c1
commit
e9c233cd6b
13 changed files with 185 additions and 28 deletions
|
@ -200,6 +200,7 @@ function parseCommandLine() {
|
|||
let destinations;
|
||||
let reporters;
|
||||
let testNamePatterns;
|
||||
let testSkipPatterns;
|
||||
let testOnlyFlag;
|
||||
|
||||
if (isChildProcessV8) {
|
||||
|
@ -240,6 +241,9 @@ function parseCommandLine() {
|
|||
testNamePatternFlag,
|
||||
(re) => convertStringToRegExp(re, '--test-name-pattern'),
|
||||
) : null;
|
||||
const testSkipPatternFlag = getOptionValue('--test-skip-pattern');
|
||||
testSkipPatterns = testSkipPatternFlag?.length > 0 ?
|
||||
ArrayPrototypeMap(testSkipPatternFlag, (re) => convertStringToRegExp(re, '--test-skip-pattern')) : null;
|
||||
}
|
||||
|
||||
globalTestOptions = {
|
||||
|
@ -250,6 +254,7 @@ function parseCommandLine() {
|
|||
sourceMaps,
|
||||
testOnlyFlag,
|
||||
testNamePatterns,
|
||||
testSkipPatterns,
|
||||
reporters,
|
||||
destinations,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue