@wdio/cli 7.16.11 → 7.16.15

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":"AAgBA,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;AA6LD,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;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"}
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.missingConfigurationPrompt = exports.handler = exports.builder = exports.cmdArgs = exports.desc = exports.command = void 0;
7
- const fs_1 = __importDefault(require("fs"));
7
+ const fs_extra_1 = __importDefault(require("fs-extra"));
8
8
  const path_1 = __importDefault(require("path"));
9
9
  const util_1 = __importDefault(require("util"));
10
10
  const inquirer_1 = __importDefault(require("inquirer"));
@@ -40,39 +40,62 @@ const runConfig = async function (useYarn, yes, exit = false) {
40
40
  const frameworkPackage = (0, utils_1.convertPackageHashToObject)(answers.framework);
41
41
  const runnerPackage = (0, utils_1.convertPackageHashToObject)(answers.runner || constants_1.SUPPORTED_PACKAGES.runner[0].value);
42
42
  const servicePackages = answers.services.map((service) => (0, utils_1.convertPackageHashToObject)(service));
43
+ const pluginPackages = answers.plugins.map((plugin) => (0, utils_1.convertPackageHashToObject)(plugin));
43
44
  const reporterPackages = answers.reporters.map((reporter) => (0, utils_1.convertPackageHashToObject)(reporter));
44
45
  let packagesToInstall = [
45
46
  runnerPackage.package,
46
47
  frameworkPackage.package,
47
48
  ...reporterPackages.map(reporter => reporter.package),
49
+ ...pluginPackages.map(plugin => plugin.package),
48
50
  ...servicePackages.map(service => service.package)
49
51
  ];
52
+ /**
53
+ * find relative paths between tests and pages
54
+ */
55
+ const parsedPaths = (0, utils_1.getPathForFileGeneration)(answers);
56
+ const parsedAnswers = {
57
+ ...answers,
58
+ runner: runnerPackage.short,
59
+ framework: frameworkPackage.short,
60
+ reporters: reporterPackages.map(({ short }) => short),
61
+ plugins: pluginPackages.map(({ short }) => short),
62
+ services: servicePackages.map(({ short }) => short),
63
+ packagesToInstall,
64
+ isUsingTypeScript: answers.isUsingCompiler === constants_1.COMPILER_OPTIONS.ts,
65
+ isUsingBabel: answers.isUsingCompiler === constants_1.COMPILER_OPTIONS.babel,
66
+ isSync: false,
67
+ _async: 'async ',
68
+ _await: 'await ',
69
+ destSpecRootPath: parsedPaths.destSpecRootPath,
70
+ destPageObjectRootPath: parsedPaths.destPageObjectRootPath,
71
+ relativePath: parsedPaths.relativePath,
72
+ tsConfigFilePath: path_1.default.join(process.cwd(), 'test', 'tsconfig.json')
73
+ };
50
74
  /**
51
75
  * add ts-node if TypeScript is desired but not installed
52
76
  */
53
- if (answers.isUsingCompiler === constants_1.COMPILER_OPTIONS.ts) {
77
+ if (parsedAnswers.isUsingTypeScript) {
54
78
  if (!(0, utils_1.hasPackage)('ts-node')) {
55
79
  packagesToInstall.push('ts-node', 'typescript');
56
80
  }
57
- if (!(0, utils_1.hasFile)('tsconfig.json')) {
58
- const config = {
59
- compilerOptions: {
60
- types: [
61
- 'node',
62
- 'webdriverio/async',
63
- frameworkPackage.package,
64
- 'expect-webdriverio'
65
- ],
66
- target: 'ES5',
67
- }
68
- };
69
- await fs_1.default.promises.writeFile(path_1.default.join(process.cwd(), 'tsconfig.json'), JSON.stringify(config, null, 4));
70
- }
81
+ const config = {
82
+ compilerOptions: {
83
+ types: [
84
+ 'node',
85
+ 'webdriverio/async',
86
+ frameworkPackage.package,
87
+ 'expect-webdriverio'
88
+ ],
89
+ target: 'ES5',
90
+ }
91
+ };
92
+ fs_extra_1.default.ensureDirSync(path_1.default.join(process.cwd(), 'test'));
93
+ await fs_extra_1.default.promises.writeFile(parsedAnswers.tsConfigFilePath, JSON.stringify(config, null, 4));
71
94
  }
72
95
  /**
73
96
  * add @babel/register package if not installed
74
97
  */
75
- if (answers.isUsingCompiler === constants_1.COMPILER_OPTIONS.babel) {
98
+ if (parsedAnswers.isUsingBabel) {
76
99
  if (!(0, utils_1.hasPackage)('@babel/register')) {
77
100
  packagesToInstall.push('@babel/register');
78
101
  }
@@ -86,7 +109,7 @@ const runConfig = async function (useYarn, yes, exit = false) {
86
109
  if (!(0, utils_1.hasPackage)('@babel/preset-env')) {
87
110
  packagesToInstall.push('@babel/preset-env');
88
111
  }
89
- await fs_1.default.promises.writeFile(path_1.default.join(process.cwd(), 'babel.config.js'), `module.exports = ${JSON.stringify({
112
+ await fs_extra_1.default.promises.writeFile(path_1.default.join(process.cwd(), 'babel.config.js'), `module.exports = ${JSON.stringify({
90
113
  presets: [
91
114
  ['@babel/preset-env', {
92
115
  targets: {
@@ -111,43 +134,32 @@ const runConfig = async function (useYarn, yes, exit = false) {
111
134
  ? `${p}@${fetchSpec}`
112
135
  : p);
113
136
  }
114
- console.log('\nInstalling wdio packages:\n-', packagesToInstall.join('\n- '));
115
- const result = (0, yarn_install_1.default)({ deps: packagesToInstall, dev: true, respectNpm5: !useYarn });
116
- if (result.status !== 0) {
117
- const customError = 'An unknown error happened! Please retry ' +
118
- `installing dependencies via "${useYarn ? 'yarn add --dev' : 'npm i --save-dev'} ` +
119
- `${packagesToInstall.join(' ')}"\n\nError: ${result.stderr || 'unknown'}`;
120
- console.log(customError);
121
- /**
122
- * don't exit if running unit tests
123
- */
124
- if (exit /* istanbul ignore next */ && !process.env.JEST_WORKER_ID) {
125
- /* istanbul ignore next */
126
- process.exit(1);
127
- }
128
- return { success: false };
129
- }
130
- console.log('\nPackages installed successfully, creating configuration file...');
131
137
  /**
132
- * find relative paths between tests and pages
138
+ * run npm install only if required by the user
133
139
  */
134
- const parsedPaths = (0, utils_1.getPathForFileGeneration)(answers);
135
- const parsedAnswers = {
136
- ...answers,
137
- runner: runnerPackage.short,
138
- framework: frameworkPackage.short,
139
- reporters: reporterPackages.map(({ short }) => short),
140
- services: servicePackages.map(({ short }) => short),
141
- packagesToInstall,
142
- isUsingTypeScript: answers.isUsingCompiler === constants_1.COMPILER_OPTIONS.ts,
143
- isUsingBabel: answers.isUsingCompiler === constants_1.COMPILER_OPTIONS.babel,
144
- isSync: false,
145
- _async: 'async ',
146
- _await: 'await ',
147
- destSpecRootPath: parsedPaths.destSpecRootPath,
148
- destPageObjectRootPath: parsedPaths.destPageObjectRootPath,
149
- relativePath: parsedPaths.relativePath
150
- };
140
+ if (parsedAnswers.npmInstall) {
141
+ console.log('\nInstalling wdio packages:\n-', packagesToInstall.join('\n- '));
142
+ const result = (0, yarn_install_1.default)({ deps: packagesToInstall, dev: true, respectNpm5: !useYarn });
143
+ if (result.status !== 0) {
144
+ const customError = 'An unknown error happened! Please retry ' +
145
+ `installing dependencies via "${useYarn ? 'yarn add --dev' : 'npm i --save-dev'} ` +
146
+ `${packagesToInstall.join(' ')}"\n\nError: ${result.stderr || 'unknown'}`;
147
+ console.log(customError);
148
+ /**
149
+ * don't exit if running unit tests
150
+ */
151
+ if (exit /* istanbul ignore next */ && !process.env.JEST_WORKER_ID) {
152
+ /* istanbul ignore next */
153
+ process.exit(1);
154
+ }
155
+ return { success: false };
156
+ }
157
+ console.log('\nPackages installed successfully, creating configuration file...');
158
+ }
159
+ else {
160
+ const installationCommand = `${useYarn ? 'yarn add --dev' : 'npm i --save-dev'} ${packagesToInstall.join(' ')}`;
161
+ console.log(util_1.default.format(constants_1.DEPENDENCIES_INSTALLATION_MESSAGE, installationCommand));
162
+ }
151
163
  try {
152
164
  await (0, utils_1.renderConfigurationFile)(parsedAnswers);
153
165
  if (answers.generateTestFiles) {
@@ -176,7 +188,7 @@ const runConfig = async function (useYarn, yes, exit = false) {
176
188
  ].join('", "')}"`;
177
189
  console.log(util_1.default.format(constants_1.TS_COMPILER_INSTRUCTIONS, tsPkgs));
178
190
  }
179
- console.log(util_1.default.format(constants_1.CONFIG_HELPER_SUCCESS_MESSAGE, (answers.isUsingCompiler === constants_1.COMPILER_OPTIONS.ts) ? 'ts' : 'js'));
191
+ console.log(util_1.default.format(constants_1.CONFIG_HELPER_SUCCESS_MESSAGE, parsedAnswers.isUsingTypeScript ? 'test/' : '', parsedAnswers.isUsingTypeScript ? 'ts' : 'js'));
180
192
  /**
181
193
  * don't exit if running unit tests
182
194
  */
@@ -1 +1 @@
1
- {"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../src/commands/install.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,uBAAuB,EAAoB,MAAM,UAAU,CAAA;AAEpE,OAAO,KAAK,MAAM,OAAO,CAAA;AAQzB,eAAO,MAAM,OAAO,0BAA0B,CAAA;AAC9C,eAAO,MAAM,IAAI,QAIN,CAAA;AAEX,eAAO,MAAM,OAAO;;;;;;;;;;CAUV,CAAA;AAEV,eAAO,MAAM,OAAO,2CAanB,CAAA;AAED,wBAAsB,OAAO,CAAC,IAAI,EAAE,uBAAuB,iBAyE1D"}
1
+ {"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../src/commands/install.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,uBAAuB,EAAoB,MAAM,UAAU,CAAA;AAEpE,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB,eAAO,MAAM,OAAO,0BAA0B,CAAA;AAC9C,eAAO,MAAM,IAAI,QAIN,CAAA;AAEX,eAAO,MAAM,OAAO;;;;;;;;;;CAUV,CAAA;AAEV,eAAO,MAAM,OAAO,2CAanB,CAAA;AAED,wBAAsB,OAAO,CAAC,IAAI,EAAE,uBAAuB,iBAyE1D"}
@@ -12,6 +12,7 @@ const utils_1 = require("../utils");
12
12
  const config_1 = require("./config");
13
13
  const constants_1 = require("../constants");
14
14
  const supportedInstallations = {
15
+ plugin: constants_1.SUPPORTED_PACKAGES.plugin.map(({ value }) => (0, utils_1.convertPackageHashToObject)(value)),
15
16
  service: constants_1.SUPPORTED_PACKAGES.service.map(({ value }) => (0, utils_1.convertPackageHashToObject)(value)),
16
17
  reporter: constants_1.SUPPORTED_PACKAGES.reporter.map(({ value }) => (0, utils_1.convertPackageHashToObject)(value)),
17
18
  framework: constants_1.SUPPORTED_PACKAGES.framework.map(({ value }) => (0, utils_1.convertPackageHashToObject)(value))
@@ -7,7 +7,9 @@ export declare const EXCLUSIVE_SERVICES: {
7
7
  };
8
8
  };
9
9
  export declare const CONFIG_HELPER_INTRO = "\n=========================\nWDIO Configuration Helper\n=========================\n";
10
- export declare const CONFIG_HELPER_SUCCESS_MESSAGE = "\nConfiguration file was created successfully!\nTo run your tests, execute:\n$ npx wdio run wdio.conf.%s\n";
10
+ export declare const CONFIG_HELPER_SUCCESS_MESSAGE = "\nConfiguration file was created successfully!\nTo run your tests, execute:\n$ npx wdio run %swdio.conf.%s\n";
11
+ export declare const DEPENDENCIES_INSTALLATION_MESSAGE = "\nTo install dependencies, execute:\n%s\n";
12
+ export declare const NPM_INSTALL = "";
11
13
  export declare const ANDROID_CONFIG: {
12
14
  platformName: string;
13
15
  automationName: string;
@@ -89,6 +91,16 @@ export declare const SUPPORTED_PACKAGES: {
89
91
  }, {
90
92
  readonly name: "delta";
91
93
  readonly value: "@delta-reporter/wdio-delta-reporter-service";
94
+ }, {
95
+ readonly name: "tesults";
96
+ readonly value: "wdio-tesults-reporter$--$tesults";
97
+ }];
98
+ readonly plugin: readonly [{
99
+ readonly name: "wait-for";
100
+ readonly value: "wdio-wait-for$--$wait-for";
101
+ }, {
102
+ readonly name: "angular-component-harnesses";
103
+ readonly value: "@badisi/wdio-harness$--$harness";
92
104
  }];
93
105
  readonly service: readonly [{
94
106
  readonly name: "chromedriver";
@@ -120,9 +132,6 @@ export declare const SUPPORTED_PACKAGES: {
120
132
  }, {
121
133
  readonly name: "eslinter-service";
122
134
  readonly value: "wdio-eslinter-service$--$eslinter";
123
- }, {
124
- readonly name: "wait-for";
125
- readonly value: "wdio-wait-for$--$wait-for";
126
135
  }, {
127
136
  readonly name: "lambdatest";
128
137
  readonly value: "wdio-lambdatest-service$--$lambdatest";
@@ -345,9 +354,26 @@ export declare const QUESTIONNAIRE: ({
345
354
  }, {
346
355
  readonly name: "delta";
347
356
  readonly value: "@delta-reporter/wdio-delta-reporter-service";
357
+ }, {
358
+ readonly name: "tesults";
359
+ readonly value: "wdio-tesults-reporter$--$tesults";
360
+ }];
361
+ 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-cucumber-reporter$--$cucumber" | "wdio-mochawesome-reporter$--$mochawesome" | "wdio-timeline-reporter$--$timeline" | "@rpii/wdio-html-reporter$--$html" | "carmenmitru/wdio-markdown-reporter" | "@delta-reporter/wdio-delta-reporter-service" | "wdio-tesults-reporter$--$tesults")[];
362
+ when?: undefined;
363
+ validate?: undefined;
364
+ } | {
365
+ type: string;
366
+ name: string;
367
+ message: string;
368
+ choices: readonly [{
369
+ readonly name: "wait-for";
370
+ readonly value: "wdio-wait-for$--$wait-for";
371
+ }, {
372
+ readonly name: "angular-component-harnesses";
373
+ readonly value: "@badisi/wdio-harness$--$harness";
348
374
  }];
349
- 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-cucumber-reporter$--$cucumber" | "wdio-mochawesome-reporter$--$mochawesome" | "wdio-timeline-reporter$--$timeline" | "@rpii/wdio-html-reporter$--$html" | "carmenmitru/wdio-markdown-reporter" | "@delta-reporter/wdio-delta-reporter-service")[];
350
375
  when?: undefined;
376
+ default?: undefined;
351
377
  validate?: undefined;
352
378
  } | {
353
379
  type: string;
@@ -383,9 +409,6 @@ export declare const QUESTIONNAIRE: ({
383
409
  }, {
384
410
  readonly name: "eslinter-service";
385
411
  readonly value: "wdio-eslinter-service$--$eslinter";
386
- }, {
387
- readonly name: "wait-for";
388
- readonly value: "wdio-wait-for$--$wait-for";
389
412
  }, {
390
413
  readonly name: "lambdatest";
391
414
  readonly value: "wdio-lambdatest-service$--$lambdatest";
@@ -447,7 +470,7 @@ export declare const QUESTIONNAIRE: ({
447
470
  readonly name: "ms-teams";
448
471
  readonly value: "wdio-ms-teams-service$--$ms-teams";
449
472
  }];
450
- default: ("wdio-chromedriver-service$--$chromedriver" | "@wdio/sauce-service$--$sauce" | "@wdio/testingbot-service$--$testingbot" | "@wdio/selenium-standalone-service$--$selenium-standalone" | "@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-wait-for$--$wait-for" | "wdio-lambdatest-service$--$lambdatest" | "wdio-zafira-listener-service$--$zafira-listener" | "wdio-reportportal-service$--$reportportal" | "wdio-docker-service$--$docker" | "wdio-ui5-service$--$wdio-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")[];
473
+ default: ("wdio-chromedriver-service$--$chromedriver" | "@wdio/sauce-service$--$sauce" | "@wdio/testingbot-service$--$testingbot" | "@wdio/selenium-standalone-service$--$selenium-standalone" | "@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$--$wdio-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")[];
451
474
  validate: (answers: string[]) => string | Boolean;
452
475
  when?: undefined;
453
476
  } | {
@@ -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,+GAIzC,CAAA;AAED,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgErB,CAAA;AAEV,eAAO,MAAM,eAAe,0NAMlB,CAAA;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoErB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAsCpC,YAAY;oBACY,YAAY;;;;;;;uBAWpC,YAAY;oBACY,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA+CR,MAAM,EAAE;;;;;;;;;;IA6BzD,CAAA"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.QUESTIONNAIRE = exports.REGION_OPTION = exports.PROTOCOL_OPTIONS = exports.BACKEND_CHOICES = exports.SUPPORTED_PACKAGES = exports.TS_COMPILER_INSTRUCTIONS = exports.COMPILER_OPTIONS = exports.COMPILER_OPTION_ANSWERS = exports.IOS_CONFIG = exports.ANDROID_CONFIG = exports.CONFIG_HELPER_SUCCESS_MESSAGE = exports.CONFIG_HELPER_INTRO = exports.EXCLUSIVE_SERVICES = exports.CLI_EPILOGUE = void 0;
3
+ exports.QUESTIONNAIRE = exports.REGION_OPTION = exports.PROTOCOL_OPTIONS = exports.BACKEND_CHOICES = exports.SUPPORTED_PACKAGES = exports.TS_COMPILER_INSTRUCTIONS = exports.COMPILER_OPTIONS = exports.COMPILER_OPTION_ANSWERS = exports.IOS_CONFIG = exports.ANDROID_CONFIG = exports.NPM_INSTALL = exports.DEPENDENCIES_INSTALLATION_MESSAGE = exports.CONFIG_HELPER_SUCCESS_MESSAGE = exports.CONFIG_HELPER_INTRO = exports.EXCLUSIVE_SERVICES = exports.CLI_EPILOGUE = void 0;
4
4
  const utils_1 = require("./utils");
5
5
  const pkg = require('../package.json');
6
6
  exports.CLI_EPILOGUE = `Documentation: https://webdriver.io\n@wdio/cli (v${pkg.version})`;
@@ -18,8 +18,13 @@ WDIO Configuration Helper
18
18
  exports.CONFIG_HELPER_SUCCESS_MESSAGE = `
19
19
  Configuration file was created successfully!
20
20
  To run your tests, execute:
21
- $ npx wdio run wdio.conf.%s
21
+ $ npx wdio run %swdio.conf.%s
22
22
  `;
23
+ exports.DEPENDENCIES_INSTALLATION_MESSAGE = `
24
+ To install dependencies, execute:
25
+ %s
26
+ `;
27
+ exports.NPM_INSTALL = '';
23
28
  exports.ANDROID_CONFIG = {
24
29
  platformName: 'Android',
25
30
  automationName: 'UiAutomator2',
@@ -78,7 +83,12 @@ exports.SUPPORTED_PACKAGES = {
78
83
  { name: 'timeline', value: 'wdio-timeline-reporter$--$timeline' },
79
84
  { name: 'html', value: '@rpii/wdio-html-reporter$--$html' },
80
85
  { name: 'markdown', value: 'carmenmitru/wdio-markdown-reporter' },
81
- { name: 'delta', value: '@delta-reporter/wdio-delta-reporter-service' }
86
+ { name: 'delta', value: '@delta-reporter/wdio-delta-reporter-service' },
87
+ { name: 'tesults', value: 'wdio-tesults-reporter$--$tesults' }
88
+ ],
89
+ plugin: [
90
+ { name: 'wait-for', value: 'wdio-wait-for$--$wait-for' },
91
+ { name: 'angular-component-harnesses', value: '@badisi/wdio-harness$--$harness' }
82
92
  ],
83
93
  service: [
84
94
  // inquirerjs shows list as its orderer in array
@@ -95,7 +105,6 @@ exports.SUPPORTED_PACKAGES = {
95
105
  { name: 'crossbrowsertesting', value: '@wdio/crossbrowsertesting-service$--$crossbrowsertesting' },
96
106
  // external
97
107
  { name: 'eslinter-service', value: 'wdio-eslinter-service$--$eslinter' },
98
- { name: 'wait-for', value: 'wdio-wait-for$--$wait-for' },
99
108
  { name: 'lambdatest', value: 'wdio-lambdatest-service$--$lambdatest' },
100
109
  { name: 'zafira-listener', value: 'wdio-zafira-listener-service$--$zafira-listener' },
101
110
  { name: 'reportportal', value: 'wdio-reportportal-service$--$reportportal' },
@@ -314,6 +323,11 @@ exports.QUESTIONNAIRE = [{
314
323
  /* istanbul ignore next */
315
324
  ({ name }) => name === 'spec').value
316
325
  ]
326
+ }, {
327
+ type: 'checkbox',
328
+ name: 'plugins',
329
+ message: 'Do you want to add a plugin to your test setup?',
330
+ choices: exports.SUPPORTED_PACKAGES.plugin
317
331
  }, {
318
332
  type: 'checkbox',
319
333
  name: 'services',
@@ -348,4 +362,9 @@ exports.QUESTIONNAIRE = [{
348
362
  name: 'baseUrl',
349
363
  message: 'What is the base url?',
350
364
  default: 'http://localhost'
365
+ }, {
366
+ type: 'confirm',
367
+ name: 'npmInstall',
368
+ message: 'Do you want me to run `npm install`',
369
+ default: true
351
370
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../src/interface.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AAErC,OAAO,KAAK,EAAE,OAAO,EAAgB,OAAO,EAAE,MAAM,aAAa,CAAA;AAMjE,UAAU,SAAS;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,UAAU,iBAAiB;IACvB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,SAAS,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G,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE;IA2BrF;;OAEG;IACH,GAAG,CAAE,GAAG,IAAI,EAAE,GAAG,EAAE;IAMnB;;OAEG;IACH,SAAS,CAAE,KAAK,EAAE,iBAAiB;IA8CnC,aAAa;IAgBb,cAAc;IAYd,YAAY;IAaZ,QAAQ;CAQX"}
@@ -164,6 +164,10 @@ class WDIOCLInterface extends events_1.EventEmitter {
164
164
  * event handler that is triggered when runner sends up events
165
165
  */
166
166
  onMessage(event) {
167
+ if (event.name === 'reporterRealTime') {
168
+ this.log(event.content);
169
+ return;
170
+ }
167
171
  if (event.origin === 'debugger' && event.name === 'start') {
168
172
  this.log(chalk_1.default.yellow(event.params.introMessage));
169
173
  this._inDebugMode = true;
@@ -4,6 +4,34 @@
4
4
  // Runner Configuration
5
5
  // ====================
6
6
  //<%
7
+ if(answers.isUsingTypeScript){ %>
8
+ //
9
+ // =====================
10
+ // ts-node Configurations
11
+ // =====================
12
+ //
13
+ // You can write tests using TypeScript to get autocompletion and type safety.
14
+ // You will need typescript and ts-node installed as devDependencies.
15
+ // WebdriverIO will automatically detect if these dependencies are installed
16
+ // and will compile your config and tests for you.
17
+ // If you need to configure how ts-node runs please use the
18
+ // environment variables for ts-node or use wdio config's autoCompileOpts section.
19
+ //
20
+
21
+ autoCompileOpts: {
22
+ autoCompile: true,
23
+ // see https://github.com/TypeStrong/ts-node#cli-and-programmatic-options
24
+ // for all available options
25
+ tsNodeOpts: {
26
+ transpileOnly: true,
27
+ project: 'test/tsconfig.json'
28
+ }
29
+ // tsconfig-paths is only used if "tsConfigPathsOpts" are provided, if you
30
+ // do please make sure "tsconfig-paths" is installed as dependency
31
+ //tsConfigPathsOpts: {
32
+ // baseUrl: './'
33
+ //}
34
+ },<% }
7
35
 
8
36
  if(answers.expEnvAccessKey){ %>
9
37
  hostname: '<%- answers.expEnvHostname %>',
@@ -216,14 +244,10 @@
216
244
  dryRun: false,
217
245
  // <boolean> abort the run on first failure
218
246
  failFast: false,
219
- // <string[]> (type[:path]) specify the output format, optionally supply PATH to redirect formatter output (repeatable)
220
- format: ['pretty'],
221
247
  // <boolean> hide step definition snippets for pending steps
222
248
  snippets: true,
223
249
  // <boolean> hide source uris
224
250
  source: true,
225
- // <string[]> (name) specify the profile to use
226
- profile: [],
227
251
  // <boolean> fail if there are any undefined or pending steps
228
252
  strict: false,
229
253
  // <string> (expression) only execute the features or scenarios with tags matching the expression
package/build/types.d.ts CHANGED
@@ -24,13 +24,16 @@ export interface Questionnair {
24
24
  isUsingCompiler: ValueOf<typeof COMPILER_OPTION_ANSWERS>;
25
25
  reporters: string[];
26
26
  services: string[];
27
+ plugins: string[];
27
28
  outputDir: string;
28
29
  baseUrl: string;
30
+ npmInstall: boolean;
29
31
  }
30
- export interface ParsedAnswers extends Omit<Questionnair, 'runner' | 'framework' | 'reporters' | 'services'> {
32
+ export interface ParsedAnswers extends Omit<Questionnair, 'runner' | 'framework' | 'reporters' | 'services' | 'plugins'> {
31
33
  runner: 'local';
32
34
  framework: string;
33
35
  reporters: string[];
36
+ plugins: string[];
34
37
  services: string[];
35
38
  packagesToInstall: string[];
36
39
  isUsingTypeScript: boolean;
@@ -41,6 +44,7 @@ export interface ParsedAnswers extends Omit<Questionnair, 'runner' | 'framework'
41
44
  destSpecRootPath: string;
42
45
  destPageObjectRootPath: string;
43
46
  relativePath: string;
47
+ tsConfigFilePath: string;
44
48
  }
45
49
  export interface RunCommandArguments {
46
50
  watch?: boolean;
@@ -77,7 +81,7 @@ export interface ReplCommandArguments {
77
81
  export interface InstallCommandArguments {
78
82
  yarn: boolean;
79
83
  config: string;
80
- type: 'service' | 'reporter' | 'framework';
84
+ type: 'service' | 'reporter' | 'framework' | 'plugin';
81
85
  name: string;
82
86
  }
83
87
  export interface ConfigCommandArguments {
@@ -1 +1 @@
1
- {"version":3,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;AAC3B,aAAK,iBAAiB,CAAC,CAAC,IAClB,YAAY,GACZ,CAAC,YAAY,EAAE,GAAG,CAAC,GACnB,cAAc,CAAC,CAAC,CAAC,CAAC;AACxB,aAAK,YAAY,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAC7C,aAAK,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,CAAC;AACF,aAAK,OAAO,GAAG,OAAO,CAAC"}
package/build/utils.d.ts CHANGED
@@ -38,9 +38,7 @@ export declare function getCapabilities(arg: ReplCommandArguments): {
38
38
  deviceName: string;
39
39
  platformVersion: string;
40
40
  udid: string;
41
- platformName: string; /**
42
- * run service launch sequences
43
- */
41
+ platformName: string;
44
42
  automationName: string;
45
43
  app: string;
46
44
  browserName?: undefined;
@@ -50,9 +48,7 @@ export declare function getCapabilities(arg: ReplCommandArguments): {
50
48
  deviceName: string;
51
49
  platformVersion: string;
52
50
  udid: string;
53
- platformName: string; /**
54
- * run service launch sequences
55
- */
51
+ platformName: string;
56
52
  automationName: string;
57
53
  browserName: string;
58
54
  };
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAElE,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAQ/G;;GAEG;AACH,wBAAsB,cAAc,CAChC,QAAQ,EAAE,QAAQ,CAAC,eAAe,EAAE,EACpC,QAAQ,EAAE,MAAM,QAAQ,CAAC,aAAa,EACtC,GAAG,IAAI,EAAE,GAAG,EAAE,sBA2BjB;AAED;;;;;GAKG;A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AM,sBAYxE;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,gBAAgB,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,MAAM,UAAQ,QAmC3F;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,SAAS,GAAG,gBAAgB,CAMvF;AAED,wBAAsB,uBAAuB,CAAE,OAAO,EAAE,aAAa,iBAWpE;AAED,eAAO,MAAM,sBAAsB,YAAa,MAAM,EAAE,KAAG,OAAO,GAAG,MAgBpE,CAAA;AAED,wBAAgB,eAAe,CAAC,GAAG,EAAE,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;EAwBxD;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAE,QAAQ,EAAE,MAAM,WAExC;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAE,GAAG,EAAE,MAAM,WActC;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CAAE,OAAO,EAAE,aAAa,iBA6B9D;AAED,wBAAsB,UAAU,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,YAAY,CAAC,CA2BpE;AAED,wBAAgB,wBAAwB,CAAE,OAAO,EAAE,YAAY;;;;;EA+B9D;AAED,wBAAgB,eAAe,CAAE,OAAO,EAAE,OAAO,CAAC,YAAY,CAAC,EAAE,QAAQ,EAAE,MAAM,UAIhF"}
package/build/utils.js CHANGED
@@ -188,7 +188,7 @@ async function renderConfigurationFile(answers) {
188
188
  const tplPath = path_1.default.join(__dirname, 'templates/wdio.conf.tpl.ejs');
189
189
  const filename = `wdio.conf.${answers.isUsingTypeScript ? 'ts' : 'js'}`;
190
190
  const renderedTpl = await renderFile(tplPath, { answers });
191
- return fs_extra_1.default.promises.writeFile(path_1.default.join(process.cwd(), filename), renderedTpl);
191
+ return fs_extra_1.default.promises.writeFile(path_1.default.join(process.cwd(), answers.isUsingTypeScript ? 'test' : '', filename), renderedTpl);
192
192
  }
193
193
  exports.renderConfigurationFile = renderConfigurationFile;
194
194
  const validateServiceAnswers = (answers) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/cli",
3
- "version": "7.16.11",
3
+ "version": "7.16.15",
4
4
  "description": "WebdriverIO testrunner command line interface",
5
5
  "author": "Christian Bromann <christian@saucelabs.com>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-cli",
@@ -35,12 +35,12 @@
35
35
  "@types/lodash.flattendeep": "^4.4.6",
36
36
  "@types/lodash.pickby": "^4.6.6",
37
37
  "@types/lodash.union": "^4.6.6",
38
- "@types/node": "^16.11.1",
38
+ "@types/node": "^17.0.4",
39
39
  "@types/recursive-readdir": "^2.2.0",
40
- "@wdio/config": "7.16.11",
40
+ "@wdio/config": "7.16.14",
41
41
  "@wdio/logger": "7.16.0",
42
- "@wdio/types": "7.16.11",
43
- "@wdio/utils": "7.16.11",
42
+ "@wdio/types": "7.16.14",
43
+ "@wdio/utils": "7.16.14",
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.16.11",
56
+ "webdriverio": "7.16.15",
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": "7aa1d82a1590b47db444734dc86fae7bca1c777c"
64
+ "gitHead": "7d61c08af83955f9ac6e59c1591ca42e1d2d7ccf"
65
65
  }