@wdio/cli 7.19.7 → 7.20.2

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":"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;AA2MD,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"}
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"}
@@ -80,6 +80,7 @@ const runConfig = async function (useYarn, yes, exit = false) {
80
80
  }
81
81
  const config = {
82
82
  compilerOptions: {
83
+ moduleResolution: 'node',
83
84
  types: [
84
85
  'node',
85
86
  'webdriverio/async',
@@ -210,6 +210,9 @@ export declare const SUPPORTED_PACKAGES: {
210
210
  }, {
211
211
  readonly name: "tesults";
212
212
  readonly value: "wdio-tesults-service$--$tesults";
213
+ }, {
214
+ readonly name: "azure-devops";
215
+ readonly value: "@gmangiapelo/wdio-azure-devops-service$--$azure-devops";
213
216
  }];
214
217
  };
215
218
  export declare const BACKEND_CHOICES: readonly ["On my local machine", "In the cloud using Experitest", "In the cloud using Sauce Labs", "In the cloud using Browserstack or Testingbot or LambdaTest or a different service", "I have my own Selenium cloud"];
@@ -505,8 +508,11 @@ export declare const QUESTIONNAIRE: ({
505
508
  }, {
506
509
  readonly name: "tesults";
507
510
  readonly value: "wdio-tesults-service$--$tesults";
511
+ }, {
512
+ readonly name: "azure-devops";
513
+ readonly value: "@gmangiapelo/wdio-azure-devops-service$--$azure-devops";
508
514
  }];
509
- default: ("wdio-chromedriver-service$--$chromedriver" | "wdio-geckodriver-service$--$geckodriver" | "wdio-edgedriver-service$--$edgedriver" | "@wdio/sauce-service$--$sauce" | "@wdio/testingbot-service$--$testingbot" | "@wdio/selenium-standalone-service$--$selenium-standalone" | "wdio-vscode-service$--$vscode" | "wdio-electron-service$--$electron" | "@wdio/devtools-service$--$devtools" | "@wdio/browserstack-service$--$browserstack" | "@wdio/appium-service$--$appium" | "@wdio/firefox-profile-service$--$firefox-profile" | "@wdio/crossbrowsertesting-service$--$crossbrowsertesting" | "wdio-eslinter-service$--$eslinter" | "wdio-lambdatest-service$--$lambdatest" | "wdio-zafira-listener-service$--$zafira-listener" | "wdio-reportportal-service$--$reportportal" | "wdio-docker-service$--$docker" | "wdio-ui5-service$--$ui5" | "wdio-wiremock-service$--$wiremock" | "wdio-ng-apimock-service$--ng-apimock" | "wdio-slack-service$--$slack" | "wdio-intercept-service$--$intercept" | "wdio-image-comparison-service$--$image-comparison" | "wdio-novus-visual-regression-service$--$novus-visual-regression" | "wdio-rerun-service$--$rerun" | "wdio-winappdriver-service$--$winappdriver" | "wdio-ywinappdriver-service$--$ywinappdriver" | "wdio-performancetotal-service$--$performancetotal" | "wdio-cleanuptotal-service$--$cleanuptotal" | "wdio-aws-device-farm-service$--$aws-device-farm" | "wdio-ocr-service$--$ocr-native-apps" | "wdio-ms-teams-service$--$ms-teams" | "wdio-tesults-service$--$tesults")[];
515
+ default: ("wdio-chromedriver-service$--$chromedriver" | "wdio-geckodriver-service$--$geckodriver" | "wdio-edgedriver-service$--$edgedriver" | "@wdio/sauce-service$--$sauce" | "@wdio/testingbot-service$--$testingbot" | "@wdio/selenium-standalone-service$--$selenium-standalone" | "wdio-vscode-service$--$vscode" | "wdio-electron-service$--$electron" | "@wdio/devtools-service$--$devtools" | "@wdio/browserstack-service$--$browserstack" | "@wdio/appium-service$--$appium" | "@wdio/firefox-profile-service$--$firefox-profile" | "@wdio/crossbrowsertesting-service$--$crossbrowsertesting" | "wdio-eslinter-service$--$eslinter" | "wdio-lambdatest-service$--$lambdatest" | "wdio-zafira-listener-service$--$zafira-listener" | "wdio-reportportal-service$--$reportportal" | "wdio-docker-service$--$docker" | "wdio-ui5-service$--$ui5" | "wdio-wiremock-service$--$wiremock" | "wdio-ng-apimock-service$--ng-apimock" | "wdio-slack-service$--$slack" | "wdio-intercept-service$--$intercept" | "wdio-image-comparison-service$--$image-comparison" | "wdio-novus-visual-regression-service$--$novus-visual-regression" | "wdio-rerun-service$--$rerun" | "wdio-winappdriver-service$--$winappdriver" | "wdio-ywinappdriver-service$--$ywinappdriver" | "wdio-performancetotal-service$--$performancetotal" | "wdio-cleanuptotal-service$--$cleanuptotal" | "wdio-aws-device-farm-service$--$aws-device-farm" | "wdio-ocr-service$--$ocr-native-apps" | "wdio-ms-teams-service$--$ms-teams" | "wdio-tesults-service$--$tesults" | "@gmangiapelo/wdio-azure-devops-service$--$azure-devops")[];
510
516
  validate: (answers: string[]) => string | Boolean;
511
517
  when?: undefined;
512
518
  } | {
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0ErB,CAAA;AAEV,eAAO,MAAM,eAAe,0NAMlB,CAAA;AAEV,eAAO,MAAM,gBAAgB,4BAGnB,CAAA;AAEV,eAAO,MAAM,aAAa,+BAIhB,CAAA;AAEV,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;oBAgBqB,YAAY;;;;;;;;;oBAMZ,YAAY;;;;;;;;;oBAyBZ,YAAY;;;;;;;oBAkDZ,YAAY;;;;;;;;oBAMZ,YAAY;;;;;;;;;;;;;;;;;;;;;;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MAAM,gBAAgB,4BAGnB,CAAA;AAEV,eAAO,MAAM,aAAa,+BAIhB,CAAA;AAEV,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;oBAgBqB,YAAY;;;;;;;;;oBAMZ,YAAY;;;;;;;;;oBAyBZ,YAAY;;;;;;;oBAkDZ,YAAY;;;;;;;;oBAMZ,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAsCpC,YAAY;oBACY,YAAY;;;;;;;uBAWpC,YAAY;oBACY,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAgDR,MAAM,EAAE;;;;;;;;;;IA6BzD,CAAA"}
@@ -130,7 +130,8 @@ exports.SUPPORTED_PACKAGES = {
130
130
  { name: 'aws-device-farm', value: 'wdio-aws-device-farm-service$--$aws-device-farm' },
131
131
  { name: 'ocr-native-apps', value: 'wdio-ocr-service$--$ocr-native-apps' },
132
132
  { name: 'ms-teams', value: 'wdio-ms-teams-service$--$ms-teams' },
133
- { name: 'tesults', value: 'wdio-tesults-service$--$tesults' }
133
+ { name: 'tesults', value: 'wdio-tesults-service$--$tesults' },
134
+ { name: 'azure-devops', value: '@gmangiapelo/wdio-azure-devops-service$--$azure-devops' }
134
135
  ]
135
136
  };
136
137
  exports.BACKEND_CHOICES = [
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,QAAQ,MAAM,YAAY,CAAA;AAkBjC,eAAO,MAAM,GAAG,qBAyDf,CAAA;AAED,eAAe,QAAQ,CAAA;AACvB,cAAc,SAAS,CAAA"}
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('$0 run wdio.conf.js --suite foobar', 'Run suite on testsuite "foobar"')
43
- .example('$0 run wdio.conf.js --spec ./tests/e2e/a.js --spec ./tests/e2e/b.js', 'Run suite on specific specs')
44
- .example('$0 run wdio.conf.js --spec ./tests/e2e/a.feature:5', 'Run scenario by line number')
45
- .example('$0 run wdio.conf.js --spec ./tests/e2e/a.feature:5:10', 'Run scenarios by line number')
46
- .example('$0 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')
47
- .example('$0 install reporter spec', 'Install @wdio/spec-reporter')
48
- .example('$0 repl chrome -u <SAUCE_USERNAME> -k <SAUCE_ACCESS_KEY>', 'Run repl in Sauce Labs cloud')
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 = { ...argv.argv };
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
- ...argv.argv,
74
- configPath: path_1.default.resolve(process.cwd(), argv.argv._[0] && argv.argv._[0].toString() || DEFAULT_CONFIG_FILENAME)
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.19.7",
3
+ "version": "7.20.2",
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,10 +37,10 @@
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.19.5",
40
+ "@wdio/config": "7.20.1",
41
41
  "@wdio/logger": "7.19.0",
42
- "@wdio/types": "7.19.5",
43
- "@wdio/utils": "7.19.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",
@@ -53,7 +53,7 @@
53
53
  "lodash.union": "^4.6.0",
54
54
  "mkdirp": "^1.0.4",
55
55
  "recursive-readdir": "^2.2.2",
56
- "webdriverio": "7.19.7",
56
+ "webdriverio": "7.20.2",
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": "ed5b7278190953d5e77d11083b59db2209ac99b5"
64
+ "gitHead": "51b8a952ec1c8e8265472823759e4cb200c272bc"
65
65
  }