@wdio/config 8.34.0 → 9.0.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigParser.d.ts","sourceRoot":"","sources":["../../src/node/ConfigParser.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAQlE,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAInE,KAAK,IAAI,GAAG,MAAM,GAAG,MAAM,EAAE,CAAA;AAK7B,UAAU,+BAAgC,SAAQ,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,cAAc,CAAC;IACtF,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,
|
|
1
|
+
{"version":3,"file":"ConfigParser.d.ts","sourceRoot":"","sources":["../../src/node/ConfigParser.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAQlE,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAInE,KAAK,IAAI,GAAG,MAAM,GAAG,MAAM,EAAE,CAAA;AAK7B,UAAU,+BAAgC,SAAQ,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,cAAc,CAAC;IACtF,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,YA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MAAM,EAAE,WAAW,GAAE,WAAyC,EAAE,cAAc,CAAC,EAAE,MAAM;IAkDtI;;;;;;OAMG;IACH,WAAW,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE;IAyBhD,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE;CAWtB"}
|
|
@@ -234,7 +234,7 @@ export default class ConfigParser {
|
|
|
234
234
|
*/
|
|
235
235
|
getSpecs(capSpecs, capExclude) {
|
|
236
236
|
const isSpecParamPassed = Array.isArray(this._config.spec) && this._config.spec.length > 0;
|
|
237
|
-
const
|
|
237
|
+
const repeat = this._config.repeat;
|
|
238
238
|
// when CLI --spec is explicitly specified, this._config.specs contains the filtered
|
|
239
239
|
// specs matching the passed pattern else the specs defined inside the config are returned
|
|
240
240
|
let specs = ConfigParser.getFilePaths(this._config.specs, this._config.rootDir, this._pathService);
|
|
@@ -271,14 +271,14 @@ export default class ConfigParser {
|
|
|
271
271
|
}
|
|
272
272
|
// Remove any duplicate tests from the final specs array
|
|
273
273
|
specs = [...new Set(specs)];
|
|
274
|
-
// If the --
|
|
275
|
-
// Ensure that when --
|
|
274
|
+
// If the --repeat flag is set, duplicate the specs array N times
|
|
275
|
+
// Ensure that when --repeat is used that either --spec or --suite is also used
|
|
276
276
|
const hasSubsetOfSpecsDefined = isSpecParamPassed || suites.length > 0;
|
|
277
|
-
if (
|
|
278
|
-
specs = Array.from({ length:
|
|
277
|
+
if (repeat && hasSubsetOfSpecsDefined) {
|
|
278
|
+
specs = Array.from({ length: repeat }, () => specs).flat();
|
|
279
279
|
}
|
|
280
|
-
else if (
|
|
281
|
-
throw new Error('The --
|
|
280
|
+
else if (repeat && !hasSubsetOfSpecsDefined) {
|
|
281
|
+
throw new Error('The --repeat flag requires that either the --spec or --suite flag is also set');
|
|
282
282
|
}
|
|
283
283
|
return this.shard(this.filterSpecs(specs, exclude));
|
|
284
284
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0-alpha.9+9220932b7",
|
|
4
4
|
"description": "A helper utility to parse and validate WebdriverIO options",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-config",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"typeScriptVersion": "3.8.3",
|
|
22
22
|
"engines": {
|
|
23
|
-
"node": "
|
|
23
|
+
"node": ">=18"
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"url": "https://github.com/webdriverio/webdriverio/issues"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@wdio/logger": "
|
|
40
|
-
"@wdio/types": "
|
|
41
|
-
"@wdio/utils": "
|
|
39
|
+
"@wdio/logger": "9.0.0-alpha.9+9220932b7",
|
|
40
|
+
"@wdio/types": "9.0.0-alpha.9+9220932b7",
|
|
41
|
+
"@wdio/utils": "9.0.0-alpha.9+9220932b7",
|
|
42
42
|
"decamelize": "^6.0.0",
|
|
43
43
|
"deepmerge-ts": "^5.0.0",
|
|
44
44
|
"glob": "^10.2.2",
|
|
@@ -48,8 +48,7 @@
|
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"minimatch": "^9.0.0"
|
|
52
|
-
"tsconfig-paths": "^4.1.0"
|
|
51
|
+
"minimatch": "^9.0.0"
|
|
53
52
|
},
|
|
54
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "9220932b7048d9b5b6c8397dda54842625be7ef2"
|
|
55
54
|
}
|