@wdio/cli 7.19.5 → 7.20.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/config.d.ts.map +1 -1
- package/build/commands/config.js +1 -0
- package/build/constants.d.ts +7 -1
- package/build/constants.d.ts.map +1 -1
- package/build/constants.js +2 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +14 -13
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/commands/config.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAChE,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,eAAO,MAAM,OAAO,WAAW,CAAA;AAC/B,eAAO,MAAM,IAAI,4EAA4E,CAAA;AAE7F,eAAO,MAAM,OAAO;;;;;;;;;;;;CAYV,CAAA;AAEV,eAAO,MAAM,OAAO;;;;;;;;;;;;GAKnB,CAAA;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/commands/config.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAChE,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,eAAO,MAAM,OAAO,WAAW,CAAA;AAC/B,eAAO,MAAM,IAAI,4EAA4E,CAAA;AAE7F,eAAO,MAAM,OAAO;;;;;;;;;;;;CAYV,CAAA;AAEV,eAAO,MAAM,OAAO;;;;;;;;;;;;GAKnB,CAAA;AA4MD,wBAAgB,OAAO,CAAC,IAAI,EAAE,sBAAsB;;;;;;;;GAEnD;AAED;;;;;;GAMG;AACH,wBAAsB,0BAA0B,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,UAAQ,EAAE,YAAY;;;;;;;;EAAY;;;;;;;;GAqB3H"}
|
package/build/commands/config.js
CHANGED
package/build/constants.d.ts
CHANGED
|
@@ -94,6 +94,9 @@ export declare const SUPPORTED_PACKAGES: {
|
|
|
94
94
|
}, {
|
|
95
95
|
readonly name: "delta";
|
|
96
96
|
readonly value: "@delta-reporter/wdio-delta-reporter-service";
|
|
97
|
+
}, {
|
|
98
|
+
readonly name: "light";
|
|
99
|
+
readonly value: "@wdio-light-reporter--$light";
|
|
97
100
|
}];
|
|
98
101
|
readonly plugin: readonly [{
|
|
99
102
|
readonly name: "wait-for";
|
|
@@ -372,8 +375,11 @@ export declare const QUESTIONNAIRE: ({
|
|
|
372
375
|
}, {
|
|
373
376
|
readonly name: "delta";
|
|
374
377
|
readonly value: "@delta-reporter/wdio-delta-reporter-service";
|
|
378
|
+
}, {
|
|
379
|
+
readonly name: "light";
|
|
380
|
+
readonly value: "@wdio-light-reporter--$light";
|
|
375
381
|
}];
|
|
376
|
-
default: ("@wdio/spec-reporter$--$spec" | "@wdio/dot-reporter$--$dot" | "@wdio/junit-reporter$--$junit" | "@wdio/allure-reporter$--$allure" | "@wdio/sumologic-reporter$--$sumologic" | "@wdio/concise-reporter$--$concise" | "wdio-reportportal-reporter$--$reportportal" | "wdio-video-reporter$--$video" | "wdio-json-reporter$--$json" | "wdio-cucumberjs-json-reporter$--$cucumberjs-json" | "wdio-mochawesome-reporter$--$mochawesome" | "wdio-timeline-reporter$--$timeline" | "wdio-html-nice-reporter$--$html-nice" | "@moroo/wdio-slack-reporter$--$slack" | "wdio-teamcity-reporter$--$teamcity" | "@delta-reporter/wdio-delta-reporter-service")[];
|
|
382
|
+
default: ("@wdio/spec-reporter$--$spec" | "@wdio/dot-reporter$--$dot" | "@wdio/junit-reporter$--$junit" | "@wdio/allure-reporter$--$allure" | "@wdio/sumologic-reporter$--$sumologic" | "@wdio/concise-reporter$--$concise" | "wdio-reportportal-reporter$--$reportportal" | "wdio-video-reporter$--$video" | "wdio-json-reporter$--$json" | "wdio-cucumberjs-json-reporter$--$cucumberjs-json" | "wdio-mochawesome-reporter$--$mochawesome" | "wdio-timeline-reporter$--$timeline" | "wdio-html-nice-reporter$--$html-nice" | "@moroo/wdio-slack-reporter$--$slack" | "wdio-teamcity-reporter$--$teamcity" | "@delta-reporter/wdio-delta-reporter-service" | "@wdio-light-reporter--$light")[];
|
|
377
383
|
when?: undefined;
|
|
378
384
|
validate?: undefined;
|
|
379
385
|
} | {
|
package/build/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAItC,eAAO,MAAM,YAAY,QAAqE,CAAA;AAE9F,eAAO,MAAM,kBAAkB;;;;;CAK9B,CAAA;AAED,eAAO,MAAM,mBAAmB,wFAI/B,CAAA;AAED,eAAO,MAAM,6BAA6B,iHAIzC,CAAA;AAED,eAAO,MAAM,iCAAiC,8CAG7C,CAAA;AAED,eAAO,MAAM,WAAW,KAAK,CAAA;AAE7B,eAAO,MAAM,cAAc;;;;CAI1B,CAAA;AAED,eAAO,MAAM,UAAU;;;;CAItB,CAAA;AAED,eAAO,MAAM,uBAAuB,iGAI1B,CAAA;AAEV,eAAO,MAAM,gBAAgB;;;;CAInB,CAAA;AAEV,eAAO,MAAM,wBAAwB,gQAQpC,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAItC,eAAO,MAAM,YAAY,QAAqE,CAAA;AAE9F,eAAO,MAAM,kBAAkB;;;;;CAK9B,CAAA;AAED,eAAO,MAAM,mBAAmB,wFAI/B,CAAA;AAED,eAAO,MAAM,6BAA6B,iHAIzC,CAAA;AAED,eAAO,MAAM,iCAAiC,8CAG7C,CAAA;AAED,eAAO,MAAM,WAAW,KA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ice', value: 'wdio-html-nice-reporter$--$html-nice' },
|
|
85
85
|
{ name: 'slack', value: '@moroo/wdio-slack-reporter$--$slack' },
|
|
86
86
|
{ name: 'teamcity', value: 'wdio-teamcity-reporter$--$teamcity' },
|
|
87
|
-
{ name: 'delta', value: '@delta-reporter/wdio-delta-reporter-service' }
|
|
87
|
+
{ name: 'delta', value: '@delta-reporter/wdio-delta-reporter-service' },
|
|
88
|
+
{ name: 'light', value: '@wdio-light-reporter--$light' }
|
|
88
89
|
],
|
|
89
90
|
plugin: [
|
|
90
91
|
{ name: 'wait-for', value: 'wdio-wait-for$--$wait-for' },
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,QAAQ,MAAM,YAAY,CAAA;AAkBjC,eAAO,MAAM,GAAG,qBAyDf,CAAA;AAED,eAAe,QAAQ,CAAA;AACvB,cAAc,SAAS,CAAA"}
|
package/build/index.js
CHANGED
|
@@ -20,7 +20,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
20
20
|
exports.run = void 0;
|
|
21
21
|
const fs_1 = __importDefault(require("fs"));
|
|
22
22
|
const path_1 = __importDefault(require("path"));
|
|
23
|
-
const yargs_1 = __importDefault(require("yargs"));
|
|
23
|
+
const yargs_1 = __importDefault(require("yargs/yargs"));
|
|
24
|
+
const helpers_1 = require("yargs/helpers");
|
|
24
25
|
const launcher_1 = __importDefault(require("./launcher"));
|
|
25
26
|
const run_1 = require("./commands/run");
|
|
26
27
|
const constants_1 = require("./constants");
|
|
@@ -37,15 +38,15 @@ const DESCRIPTION = [
|
|
|
37
38
|
'For more information, visit: https://webdriver.io/docs/clioptions'
|
|
38
39
|
];
|
|
39
40
|
const run = async () => {
|
|
40
|
-
const argv = yargs_1.default
|
|
41
|
+
const argv = (0, yargs_1.default)((0, helpers_1.hideBin)(process.argv))
|
|
41
42
|
.commandDir('commands')
|
|
42
|
-
.example('
|
|
43
|
-
.example('
|
|
44
|
-
.example('
|
|
45
|
-
.example('
|
|
46
|
-
.example('
|
|
47
|
-
.example('
|
|
48
|
-
.example('
|
|
43
|
+
.example('wdio run wdio.conf.js --suite foobar', 'Run suite on testsuite "foobar"')
|
|
44
|
+
.example('wdio run wdio.conf.js --spec ./tests/e2e/a.js --spec ./tests/e2e/b.js', 'Run suite on specific specs')
|
|
45
|
+
.example('wdio run wdio.conf.js --spec ./tests/e2e/a.feature:5', 'Run scenario by line number')
|
|
46
|
+
.example('wdio run wdio.conf.js --spec ./tests/e2e/a.feature:5:10', 'Run scenarios by line number')
|
|
47
|
+
.example('wdio run wdio.conf.js --spec ./tests/e2e/a.feature:5:10 --spec ./test/e2e/b.feature', 'Run scenarios by line number in single feature and another complete feature')
|
|
48
|
+
.example('wdio install reporter spec', 'Install @wdio/spec-reporter')
|
|
49
|
+
.example('wdio repl chrome -u <SAUCE_USERNAME> -k <SAUCE_ACCESS_KEY>', 'Run repl in Sauce Labs cloud')
|
|
49
50
|
.updateStrings({ 'Commands:': `${DESCRIPTION.join('\n')}\n\nCommands:` })
|
|
50
51
|
.epilogue(constants_1.CLI_EPILOGUE);
|
|
51
52
|
/**
|
|
@@ -64,17 +65,17 @@ const run = async () => {
|
|
|
64
65
|
* Since the `run` command verifies if the configuration file exists before executing
|
|
65
66
|
* we don't have to check that again here.
|
|
66
67
|
*/
|
|
67
|
-
const params =
|
|
68
|
+
const params = await argv.parse();
|
|
68
69
|
const supportedCommands = fs_1.default
|
|
69
70
|
.readdirSync(path_1.default.join(__dirname, 'commands'))
|
|
70
71
|
.map((file) => file.slice(0, -3));
|
|
71
72
|
if (params._ && !params._.find((param) => supportedCommands.includes(param))) {
|
|
72
73
|
const args = {
|
|
73
|
-
...
|
|
74
|
-
configPath: path_1.default.resolve(process.cwd(),
|
|
74
|
+
...params,
|
|
75
|
+
configPath: path_1.default.resolve(process.cwd(), params._[0] && params._[0].toString() || DEFAULT_CONFIG_FILENAME)
|
|
75
76
|
};
|
|
76
77
|
return (0, run_1.handler)(args).catch(async (err) => {
|
|
77
|
-
const output = await new Promise((resolve) => (yargs_1.default.parse('--help', (err, argv, output) => resolve(output))));
|
|
78
|
+
const output = await new Promise((resolve) => ((0, yargs_1.default)((0, helpers_1.hideBin)(process.argv)).parse('--help', (err, argv, output) => resolve(output))));
|
|
78
79
|
console.error(`${output}\n\n${err.stack}`);
|
|
79
80
|
/* istanbul ignore if */
|
|
80
81
|
if (!process.env.JEST_WORKER_ID) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/cli",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.20.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",
|
|
@@ -37,23 +37,23 @@
|
|
|
37
37
|
"@types/lodash.union": "^4.6.6",
|
|
38
38
|
"@types/node": "^17.0.4",
|
|
39
39
|
"@types/recursive-readdir": "^2.2.0",
|
|
40
|
-
"@wdio/config": "7.
|
|
40
|
+
"@wdio/config": "7.20.0",
|
|
41
41
|
"@wdio/logger": "7.19.0",
|
|
42
|
-
"@wdio/types": "7.
|
|
43
|
-
"@wdio/utils": "7.
|
|
42
|
+
"@wdio/types": "7.20.0",
|
|
43
|
+
"@wdio/utils": "7.20.0",
|
|
44
44
|
"async-exit-hook": "^2.0.1",
|
|
45
45
|
"chalk": "^4.0.0",
|
|
46
46
|
"chokidar": "^3.0.0",
|
|
47
47
|
"cli-spinners": "^2.1.0",
|
|
48
48
|
"ejs": "^3.0.1",
|
|
49
49
|
"fs-extra": "^10.0.0",
|
|
50
|
-
"inquirer": "8.2.
|
|
50
|
+
"inquirer": "8.2.4",
|
|
51
51
|
"lodash.flattendeep": "^4.4.0",
|
|
52
52
|
"lodash.pickby": "^4.6.0",
|
|
53
53
|
"lodash.union": "^4.6.0",
|
|
54
54
|
"mkdirp": "^1.0.4",
|
|
55
55
|
"recursive-readdir": "^2.2.2",
|
|
56
|
-
"webdriverio": "7.
|
|
56
|
+
"webdriverio": "7.20.0",
|
|
57
57
|
"yargs": "^17.0.0",
|
|
58
58
|
"yarn-install": "^1.0.0"
|
|
59
59
|
},
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"access": "public"
|
|
62
62
|
},
|
|
63
63
|
"types": "./build/index.d.ts",
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "b00976955d3901903fe8401d09ed10d8826d38b1"
|
|
65
65
|
}
|