@wdio/runner 7.12.2 → 7.13.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/index.d.ts.map +1 -1
- package/build/index.js +8 -4
- package/package.json +7 -7
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AAKrC,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AAKrC,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAY,MAAM,aAAa,CAAA;AAalE;;;GAGG;AACH,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,MAAM,CAAC;QACb,UAAU,MAAM;YACZ,CAAC,EAAE,GAAG,CAAA;YACN,EAAE,EAAE,GAAG,CAAA;YACP,OAAO,EAAE,GAAG,CAAA;YACZ,MAAM,EAAE,GAAG,CAAA;YACX,kBAAkB,EAAE,GAAG,CAAA;SAC1B;KACJ;CACJ;AAED,UAAU,IAAK,SAAQ,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC;IAC9C,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAA;IAChC,KAAK,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,aAAK,SAAS,GAAG;IACb,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,IAAI,CAAA;IACV,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,IAAI,EAAE,YAAY,CAAC,gBAAgB,CAAA;IACnC,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;CAClB,CAAA;AAmBD,OAAO,CAAC,MAAM,CAAC;IACX,IAAI,kBAAkB,EAAE,OAAO,CAAA;CAClC;AAED,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,YAAY;IAC5C,OAAO,CAAC,aAAa,CAAqB;IAC1C,OAAO,CAAC,gBAAgB,CAAQ;IAChC,OAAO,CAAC,cAAc,CAAQ;IAC9B,OAAO,CAAC,sBAAsB,CAAI;IAElC,OAAO,CAAC,SAAS,CAAC,CAAc;IAChC,OAAO,CAAC,UAAU,CAAC,CAAe;IAClC,OAAO,CAAC,OAAO,CAAC,CAAoB;IACpC,OAAO,CAAC,IAAI,CAAC,CAAQ;IACrB,OAAO,CAAC,MAAM,CAAC,CAAU;IACzB,OAAO,CAAC,KAAK,CAAC,CAA+B;IAE7C;;;;;;;;;OASG;IACG,GAAG,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,SAAS;IA0JpE;;;;;;OAMG;YACW,YAAY;IA6C1B;;;;;OAKG;YACW,aAAa;IAwB3B;;OAEG;YACW,gBAAgB;IAoE9B;;OAEG;YACW,SAAS;IAkBvB;;;OAGG;IACG,UAAU;CAmDnB"}
|
package/build/index.js
CHANGED
|
@@ -73,7 +73,8 @@ class Runner extends events_1.EventEmitter {
|
|
|
73
73
|
* run `beforeSession` command before framework and browser are initiated
|
|
74
74
|
*/
|
|
75
75
|
utils_1.initialiseWorkerService(this._config, caps, args.ignoredWorkerServices).map(this._configParser.addService.bind(this._configParser));
|
|
76
|
-
|
|
76
|
+
const beforeSessionParams = [this._config, this._caps, this._specs, this._cid];
|
|
77
|
+
await utils_1.executeHooksWithArgs('beforeSession', this._config.beforeSession, beforeSessionParams);
|
|
77
78
|
this._reporter = new reporter_1.default(this._config, this._cid, { ...caps });
|
|
78
79
|
/**
|
|
79
80
|
* initialise framework
|
|
@@ -89,11 +90,13 @@ class Runner extends events_1.EventEmitter {
|
|
|
89
90
|
* return if session initialisation failed
|
|
90
91
|
*/
|
|
91
92
|
if (!browser) {
|
|
92
|
-
|
|
93
|
+
const afterArgs = [1, this._caps, this._specs];
|
|
94
|
+
await utils_1.executeHooksWithArgs('after', this._config.after, afterArgs);
|
|
93
95
|
return this._shutdown(1, retries);
|
|
94
96
|
}
|
|
95
97
|
this._reporter.caps = browser.capabilities;
|
|
96
|
-
|
|
98
|
+
const beforeArgs = [this._caps, this._specs, browser];
|
|
99
|
+
await utils_1.executeHooksWithArgs('before', this._config.before, beforeArgs);
|
|
97
100
|
/**
|
|
98
101
|
* kill session of SIGINT signal showed up while trying to
|
|
99
102
|
* get a session ID
|
|
@@ -352,7 +355,8 @@ class Runner extends events_1.EventEmitter {
|
|
|
352
355
|
// @ts-ignore sessionId is usually required
|
|
353
356
|
delete global.browser.sessionId;
|
|
354
357
|
}
|
|
355
|
-
|
|
358
|
+
const afterSessionArgs = [this._config, capabilities, this._specs];
|
|
359
|
+
await utils_1.executeHooksWithArgs('afterSession', global.browser.config.afterSession, afterSessionArgs);
|
|
356
360
|
}
|
|
357
361
|
}
|
|
358
362
|
exports.default = Runner;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/runner",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.13.0",
|
|
4
4
|
"description": "A WebdriverIO service that runs tests in arbitrary environments",
|
|
5
5
|
"author": "Christian Bromann <christian@saucelabs.com>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-runner",
|
|
@@ -22,17 +22,17 @@
|
|
|
22
22
|
"url": "https://github.com/webdriverio/webdriverio/issues"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@wdio/config": "7.
|
|
25
|
+
"@wdio/config": "7.13.0",
|
|
26
26
|
"@wdio/logger": "7.7.0",
|
|
27
|
-
"@wdio/types": "7.
|
|
28
|
-
"@wdio/utils": "7.
|
|
27
|
+
"@wdio/types": "7.13.0",
|
|
28
|
+
"@wdio/utils": "7.13.0",
|
|
29
29
|
"deepmerge": "^4.0.0",
|
|
30
30
|
"gaze": "^1.1.2",
|
|
31
|
-
"webdriver": "7.
|
|
32
|
-
"webdriverio": "7.
|
|
31
|
+
"webdriver": "7.13.0",
|
|
32
|
+
"webdriverio": "7.13.0"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "14640810f655ab9c4d607b6cc6870f8b84a68ebd"
|
|
38
38
|
}
|