@wdio/cli 9.27.2 → 9.29.0
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.
- package/build/commands/run.d.ts +9 -1
- package/build/commands/run.d.ts.map +1 -1
- package/build/index.js +13 -1
- package/build/types.d.ts +1 -0
- package/build/types.d.ts.map +1 -1
- package/package.json +9 -9
package/build/commands/run.d.ts
CHANGED
|
@@ -108,6 +108,10 @@ export declare const cmdArgs: {
|
|
|
108
108
|
readonly coverage: {
|
|
109
109
|
readonly desc: "Enable coverage for browser runner";
|
|
110
110
|
};
|
|
111
|
+
readonly headless: {
|
|
112
|
+
readonly desc: "run all browser instances in headless mode, overrides capability settings in wdio.conf.js";
|
|
113
|
+
readonly type: "boolean";
|
|
114
|
+
};
|
|
111
115
|
readonly shard: {
|
|
112
116
|
readonly desc: "Shard tests and execute only the selected shard. Specify in the one-based form like `--shard x/y`, where x is the current and y the total shard.";
|
|
113
117
|
readonly coerce: (shard: string) => {
|
|
@@ -116,7 +120,7 @@ export declare const cmdArgs: {
|
|
|
116
120
|
};
|
|
117
121
|
};
|
|
118
122
|
};
|
|
119
|
-
export declare const builder: (yargs: Argv) => Argv<import("yargs").Omit<{}, "exclude" | "bail" | "updateSnapshots" | "framework" | "reporters" | "watch" | "shard" | "mochaOpts" | "jasmineOpts" | "cucumberOpts" | "baseUrl" | "waitforTimeout" | "logLevel" | "hostname" | "port" | "path" | "user" | "key" | "coverage" | "suite" | "spec" | "repeat"> & import("yargs").InferredOptionTypes<{
|
|
123
|
+
export declare const builder: (yargs: Argv) => Argv<import("yargs").Omit<{}, "exclude" | "bail" | "updateSnapshots" | "framework" | "reporters" | "watch" | "shard" | "mochaOpts" | "jasmineOpts" | "cucumberOpts" | "baseUrl" | "waitforTimeout" | "logLevel" | "hostname" | "port" | "path" | "user" | "key" | "coverage" | "headless" | "suite" | "spec" | "repeat"> & import("yargs").InferredOptionTypes<{
|
|
120
124
|
readonly watch: {
|
|
121
125
|
readonly desc: "Run WebdriverIO in watch mode";
|
|
122
126
|
readonly type: "boolean";
|
|
@@ -222,6 +226,10 @@ export declare const builder: (yargs: Argv) => Argv<import("yargs").Omit<{}, "ex
|
|
|
222
226
|
readonly coverage: {
|
|
223
227
|
readonly desc: "Enable coverage for browser runner";
|
|
224
228
|
};
|
|
229
|
+
readonly headless: {
|
|
230
|
+
readonly desc: "run all browser instances in headless mode, overrides capability settings in wdio.conf.js";
|
|
231
|
+
readonly type: "boolean";
|
|
232
|
+
};
|
|
225
233
|
readonly shard: {
|
|
226
234
|
readonly desc: "Shard tests and execute only the selected shard. Specify in the one-based form like `--shard x/y`, where x is the current and y the total shard.";
|
|
227
235
|
readonly coerce: (shard: string) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/commands/run.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAMjC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAOtD,eAAO,MAAM,OAAO,qBAAqB,CAAA;AAEzC,eAAO,MAAM,IAAI,yEAAyE,CAAA;AAE1F,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAmDI,MAAM
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/commands/run.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAMjC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAOtD,eAAO,MAAM,OAAO,qBAAqB,CAAA;AAEzC,eAAO,MAAM,IAAI,yEAAyE,CAAA;AAE1F,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAmDI,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAsDN,MAAM;;;;;CAQpB,CAAA;AAEV,eAAO,MAAM,OAAO,GAAI,OAAO,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAhEX,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAsDN,MAAM;;;;;GAsB7B,CAAA;AAED,wBAAgB,eAAe,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,mBAAmB,CAAC,QAezF;AAED,wBAAsB,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,mBAAmB,CAAC,iBAgBtF;AAED,wBAAsB,OAAO,CAAC,IAAI,EAAE,mBAAmB,iBA6EtD"}
|
package/build/index.js
CHANGED
|
@@ -549,6 +549,9 @@ var WDIOCLInterface = class extends EventEmitter {
|
|
|
549
549
|
this.setup();
|
|
550
550
|
this.onStart();
|
|
551
551
|
}
|
|
552
|
+
_config;
|
|
553
|
+
totalWorkerCnt;
|
|
554
|
+
_isWatchMode;
|
|
552
555
|
#snapshotManager = new SnapshotManager({
|
|
553
556
|
updateSnapshot: "new"
|
|
554
557
|
// ignored in this context
|
|
@@ -818,6 +821,9 @@ var Launcher = class {
|
|
|
818
821
|
this._isWatchMode = _isWatchMode;
|
|
819
822
|
this.configParser = new ConfigParser2(this._configFilePath, this._args);
|
|
820
823
|
}
|
|
824
|
+
_configFilePath;
|
|
825
|
+
_args;
|
|
826
|
+
_isWatchMode;
|
|
821
827
|
#isInitialized = false;
|
|
822
828
|
configParser;
|
|
823
829
|
isMultiremote = false;
|
|
@@ -1290,6 +1296,8 @@ var Watcher = class {
|
|
|
1290
1296
|
log4.info("Starting launcher in watch mode");
|
|
1291
1297
|
this._launcher = new launcher_default(this._configFile, this._args, true);
|
|
1292
1298
|
}
|
|
1299
|
+
_configFile;
|
|
1300
|
+
_args;
|
|
1293
1301
|
_launcher;
|
|
1294
1302
|
_specs = [];
|
|
1295
1303
|
async watch() {
|
|
@@ -1500,6 +1508,10 @@ var cmdArgs = {
|
|
|
1500
1508
|
coverage: {
|
|
1501
1509
|
desc: "Enable coverage for browser runner"
|
|
1502
1510
|
},
|
|
1511
|
+
headless: {
|
|
1512
|
+
desc: "run all browser instances in headless mode, overrides capability settings in wdio.conf.js",
|
|
1513
|
+
type: "boolean"
|
|
1514
|
+
},
|
|
1503
1515
|
shard: {
|
|
1504
1516
|
desc: "Shard tests and execute only the selected shard. Specify in the one-based form like `--shard x/y`, where x is the current and y the total shard.",
|
|
1505
1517
|
coerce: (shard) => {
|
|
@@ -1512,7 +1524,7 @@ var cmdArgs = {
|
|
|
1512
1524
|
}
|
|
1513
1525
|
};
|
|
1514
1526
|
var builder = (yargs2) => {
|
|
1515
|
-
return yargs2.options(cmdArgs).example("$0 run wdio.conf.js --suite foobar", 'Run suite on testsuite "foobar"').example("$0 run wdio.conf.js --spec ./tests/e2e/a.js --spec ./tests/e2e/b.js", "Run suite on specific specs").example("$0 run wdio.conf.js --shard 1/4", "Run only the first shard of 4 shards").example("$0 run wdio.conf.js --mochaOpts.timeout 60000", "Run suite with custom Mocha timeout").example("$0 run wdio.conf.js --tsConfigPath=./configs/bdd-tsconfig.json", "Run suite with tsx using custom tsconfig.json").epilogue(CLI_EPILOGUE).help();
|
|
1527
|
+
return yargs2.options(cmdArgs).example("$0 run wdio.conf.js --suite foobar", 'Run suite on testsuite "foobar"').example("$0 run wdio.conf.js --spec ./tests/e2e/a.js --spec ./tests/e2e/b.js", "Run suite on specific specs").example("$0 run wdio.conf.js --shard 1/4", "Run only the first shard of 4 shards").example("$0 run wdio.conf.js --headless", "Run all tests in headless mode").example("$0 run wdio.conf.js --headless=false", "Run all tests in headed (non-headless) mode").example("$0 run wdio.conf.js --mochaOpts.timeout 60000", "Run suite with custom Mocha timeout").example("$0 run wdio.conf.js --tsConfigPath=./configs/bdd-tsconfig.json", "Run suite with tsx using custom tsconfig.json").epilogue(CLI_EPILOGUE).help();
|
|
1516
1528
|
};
|
|
1517
1529
|
function launchWithStdin(wdioConfPath, params) {
|
|
1518
1530
|
let stdinData = "";
|
package/build/types.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import type { SUPPORTED_PACKAGE_MANAGERS } from 'create-wdio/utils';
|
|
|
4
4
|
export type PM = typeof SUPPORTED_PACKAGE_MANAGERS[number];
|
|
5
5
|
export interface RunCommandArguments {
|
|
6
6
|
coverage?: boolean;
|
|
7
|
+
headless?: boolean;
|
|
7
8
|
watch?: boolean;
|
|
8
9
|
hostname?: string;
|
|
9
10
|
port?: number;
|
package/build/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACrD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AACxD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAA;AAEnE,MAAM,MAAM,EAAE,GAAG,OAAO,0BAA0B,CAAC,MAAM,CAAC,CAAA;AAE1D,MAAM,WAAW,mBAAmB;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAA;IACnE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,C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AG,WAAW,GAAG,QAAQ,CAAA;IACrD,IAAI,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,gBAAgB;IAC7B,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC7B,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;CACjB;AAED,4CAA4C;AAC5C,MAAM,MAAM,gBAAgB,CAAC,CAAC,IACxB,CAAC,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,GACpC,iBAAiB,CAAC,CAAC,CAAC,CAAA;AAC1B,KAAK,iBAAiB,CAAC,CAAC,IAClB,YAAY,GAEZ,CAAC,YAAY,EAAE,GAAG,CAAC,GACnB,cAAc,CAAC,CAAC,CAAC,CAAA;AACvB,KAAK,YAAY,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;AAC5C,KAAK,cAAc,CAAC,CAAC,IAAI;KACpB,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;CACvD,CAAA;AACD,KAAK,OAAO,GAAG,OAAO,CAAA;AAEtB,MAAM,WAAW,YAAY;IACzB,YAAY,EAAE,OAAO,CAAA;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,qBAAqB,CAAA;CACrC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/cli",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.29.0",
|
|
4
4
|
"description": "WebdriverIO testrunner command line interface",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-cli",
|
|
@@ -40,16 +40,16 @@
|
|
|
40
40
|
"typeScriptVersion": "3.8.3",
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@vitest/snapshot": "^2.1.1",
|
|
43
|
-
"@wdio/config": "9.
|
|
44
|
-
"@wdio/globals": "9.
|
|
43
|
+
"@wdio/config": "9.29.0",
|
|
44
|
+
"@wdio/globals": "9.29.0",
|
|
45
45
|
"@wdio/logger": "9.18.0",
|
|
46
|
-
"@wdio/protocols": "9.
|
|
47
|
-
"@wdio/types": "9.
|
|
48
|
-
"@wdio/utils": "9.
|
|
46
|
+
"@wdio/protocols": "9.29.0",
|
|
47
|
+
"@wdio/types": "9.29.0",
|
|
48
|
+
"@wdio/utils": "9.29.0",
|
|
49
49
|
"async-exit-hook": "^2.0.1",
|
|
50
50
|
"chalk": "^5.4.1",
|
|
51
51
|
"chokidar": "^4.0.0",
|
|
52
|
-
"create-wdio": "9.
|
|
52
|
+
"create-wdio": "9.29.0",
|
|
53
53
|
"dotenv": "^17.2.0",
|
|
54
54
|
"import-meta-resolve": "^4.0.0",
|
|
55
55
|
"lodash.flattendeep": "^4.4.0",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"lodash.union": "^4.6.0",
|
|
58
58
|
"read-pkg-up": "^10.0.0",
|
|
59
59
|
"tsx": "^4.7.2",
|
|
60
|
-
"webdriverio": "9.
|
|
60
|
+
"webdriverio": "9.29.0",
|
|
61
61
|
"yargs": "^17.7.2"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "c7808c59ca3ab6a677230cebd688454426cba0f2"
|
|
74
74
|
}
|