@wdio/runner 8.8.1 → 8.8.4

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":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAW,OAAO,EAAY,MAAM,aAAa,CAAA;AAE3E,OAAO,KAAK,YAAY,MAAM,eAAe,CAAA;AAC7C,OAAO,KAAK,EAAE,aAAa,EAA6C,MAAM,YAAY,CAAA;AAK1F,KAAK,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC,CAAC,GAAG;IAAE,YAAY,CAAC,EAAE,OAAO,CAAA;CAAE,CAAA;AAO9G,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM;QACZ,cAAc,EAAE,cAAc,EAAE,CAAA;QAChC,cAAc,EAAE,GAAG,EAAE,CAAA;QACrB,gBAAgB,EAAE,MAAM,CAAA;QACxB,YAAY,CAAC,EAAE,OAAO,CAAA;KACzB;CACJ;AAID,MAAM,CAAC,OAAO,OAAO,gBAAiB,YAAW,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC;;IAKpE,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,SAAS;gBAJT,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,OAAO,CAAC,UAAU,GAAG;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,EACpD,MAAM,EAAE,MAAM,EAAE,EAChB,aAAa,EAAE,YAAY,CAAC,gBAAgB,EAC5C,SAAS,EAAE,YAAY;IASnC;;OAEG;IACH,QAAQ;IAIR,IAAI;IAIE,GAAG;IA0KT,MAAM,CAAC,IAAI,CAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAA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E,KAAK,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,YAAY,CAAC,gBAAgB,EAAE,QAAQ,EAAE,YAAY;CAItH"}
package/build/browser.js CHANGED
@@ -58,7 +58,6 @@ export default class BrowserFramework {
58
58
  * start tests
59
59
  */
60
60
  let failures = 0;
61
- let uid = 0;
62
61
  for (const spec of this._specs) {
63
62
  log.info(`Run spec file ${spec} for cid ${this._cid}`);
64
63
  /**
@@ -147,12 +146,12 @@ export default class BrowserFramework {
147
146
  failures += 1;
148
147
  continue;
149
148
  }
150
- await this.#fetchEvents(browser, spec, ++uid);
149
+ await this.#fetchEvents(browser, spec);
151
150
  failures += state.failures || 0;
152
151
  }
153
152
  return failures;
154
153
  }
155
- async #fetchEvents(browser, spec, uid) {
154
+ async #fetchEvents(browser, spec) {
156
155
  /**
157
156
  * populate events to the reporter
158
157
  */
@@ -164,7 +163,7 @@ export default class BrowserFramework {
164
163
  this._reporter.emit(ev.type, {
165
164
  ...ev,
166
165
  file: spec,
167
- uid: `${this._cid}-${uid}`,
166
+ uid: `${this._cid}-${Buffer.from(ev.fullTitle).toString('base64')}`,
168
167
  cid: this._cid
169
168
  });
170
169
  }
package/build/index.d.ts CHANGED
@@ -16,12 +16,12 @@ export default class Runner extends EventEmitter {
16
16
  private _caps?;
17
17
  /**
18
18
  * run test suite
19
- * @param {String} cid worker id (e.g. `0-0`)
19
+ * @param {string} cid worker id (e.g. `0-0`)
20
20
  * @param {Object} args config arguments passed into worker process
21
- * @param {String[]} specs list of spec files to run
21
+ * @param {string[]} specs list of spec files to run
22
22
  * @param {Object} caps capabilities to run session with
23
- * @param {String} configFile path to config file to get config from
24
- * @param {Number} retries number of retries remaining
23
+ * @param {string} configFile path to config file to get config from
24
+ * @param {number} retries number of retries remaining
25
25
  * @return {Promise} resolves in number of failures for testrun
26
26
  */
27
27
  run({ cid, args, specs, caps, configFile, retries }: RunParams): Promise<number>;
package/build/index.js CHANGED
@@ -25,12 +25,12 @@ export default class Runner extends EventEmitter {
25
25
  _caps;
26
26
  /**
27
27
  * run test suite
28
- * @param {String} cid worker id (e.g. `0-0`)
28
+ * @param {string} cid worker id (e.g. `0-0`)
29
29
  * @param {Object} args config arguments passed into worker process
30
- * @param {String[]} specs list of spec files to run
30
+ * @param {string[]} specs list of spec files to run
31
31
  * @param {Object} caps capabilities to run session with
32
- * @param {String} configFile path to config file to get config from
33
- * @param {Number} retries number of retries remaining
32
+ * @param {string} configFile path to config file to get config from
33
+ * @param {number} retries number of retries remaining
34
34
  * @return {Promise} resolves in number of failures for testrun
35
35
  */
36
36
  async run({ cid, args, specs, caps, configFile, retries }) {
@@ -16,7 +16,7 @@ export default class BaseReporter {
16
16
  /**
17
17
  * emit events to all registered reporter and wdio launcer
18
18
  *
19
- * @param {String} e event name
19
+ * @param {string} e event name
20
20
  * @param {object} payload event payload
21
21
  */
22
22
  emit(e: string, payload: any): void;
package/build/reporter.js CHANGED
@@ -25,7 +25,7 @@ export default class BaseReporter {
25
25
  /**
26
26
  * emit events to all registered reporter and wdio launcer
27
27
  *
28
- * @param {String} e event name
28
+ * @param {string} e event name
29
29
  * @param {object} payload event payload
30
30
  */
31
31
  emit(e, payload) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/runner",
3
- "version": "8.8.1",
3
+ "version": "8.8.4",
4
4
  "description": "A WebdriverIO service that runs tests in arbitrary environments",
5
5
  "author": "Christian Bromann <mail@bromann.dev>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-runner",
@@ -30,19 +30,19 @@
30
30
  "typeScriptVersion": "3.8.3",
31
31
  "dependencies": {
32
32
  "@types/node": "^18.0.0",
33
- "@wdio/config": "8.8.0",
34
- "@wdio/globals": "8.8.1",
33
+ "@wdio/config": "8.8.4",
34
+ "@wdio/globals": "8.8.4",
35
35
  "@wdio/logger": "8.6.6",
36
- "@wdio/types": "8.8.0",
37
- "@wdio/utils": "8.8.0",
36
+ "@wdio/types": "8.8.4",
37
+ "@wdio/utils": "8.8.4",
38
38
  "deepmerge-ts": "^5.0.0",
39
39
  "expect-webdriverio": "^4.0.1",
40
40
  "gaze": "^1.1.2",
41
- "webdriver": "8.8.1",
42
- "webdriverio": "8.8.1"
41
+ "webdriver": "8.8.4",
42
+ "webdriverio": "8.8.4"
43
43
  },
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
- "gitHead": "9119f9fe5ae85b0c399a58e4e09ca3a824daa305"
47
+ "gitHead": "e88a296000de70344fbf19d0d63a54cb1a617427"
48
48
  }