@wdio/runner 8.0.0-alpha.518 → 8.0.0-alpha.537
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 +1 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +3 -13
- package/build/reporter.d.ts.map +1 -1
- package/build/reporter.js +1 -1
- package/package.json +9 -9
package/build/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { RunParams } from './types';
|
|
|
4
4
|
export default class Runner extends EventEmitter {
|
|
5
5
|
#private;
|
|
6
6
|
private _browser?;
|
|
7
|
-
private _configParser
|
|
7
|
+
private _configParser?;
|
|
8
8
|
private _sigintWasCalled;
|
|
9
9
|
private _isMultiremote;
|
|
10
10
|
private _specFileRetryAttempts;
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAa1C,OAAO,KAAK,EACoD,SAAS,EAGxE,MAAM,SAAS,CAAA;AAIhB,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,YAAY;;IAC5C,OAAO,CAAC,QAAQ,CAAC,CAAgD;IACjE,OAAO,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAa1C,OAAO,KAAK,EACoD,SAAS,EAGxE,MAAM,SAAS,CAAA;AAIhB,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,YAAY;;IAC5C,OAAO,CAAC,QAAQ,CAAC,CAAgD;IACjE,OAAO,CAAC,aAAa,CAAC,CAAc;IACpC,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;IAgLpE;;;;;;OAMG;YACW,YAAY;IA6C1B;;;;;OAKG;YACW,aAAa;IAiC3B;;OAEG;YACW,gBAAgB;IA8D9B;;OAEG;YACW,SAAS;IAmCvB;;;OAGG;IACG,UAAU;CA2DnB;AAED,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,eAAe,CAAA;AACvD,cAAc,YAAY,CAAA"}
|
package/build/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import { initialiseInstance, filterLogTypes, getInstancesData } from './utils.js
|
|
|
12
12
|
const log = logger('@wdio/runner');
|
|
13
13
|
export default class Runner extends EventEmitter {
|
|
14
14
|
_browser;
|
|
15
|
-
_configParser
|
|
15
|
+
_configParser;
|
|
16
16
|
_sigintWasCalled = false;
|
|
17
17
|
_isMultiremote = false;
|
|
18
18
|
_specFileRetryAttempts = 0;
|
|
@@ -33,30 +33,20 @@ export default class Runner extends EventEmitter {
|
|
|
33
33
|
* @return {Promise} resolves in number of failures for testrun
|
|
34
34
|
*/
|
|
35
35
|
async run({ cid, args, specs, caps, configFile, retries }) {
|
|
36
|
+
this._configParser = new ConfigParser(configFile, args);
|
|
36
37
|
this._cid = cid;
|
|
37
38
|
this._specs = specs;
|
|
38
39
|
this._caps = caps;
|
|
39
|
-
/**
|
|
40
|
-
* autocompile after parsing configs so we support ES6 features in tests with config driven by users
|
|
41
|
-
*/
|
|
42
|
-
if (args.autoCompileOpts?.autoCompile) {
|
|
43
|
-
this._configParser.merge({ autoCompileOpts: args.autoCompileOpts });
|
|
44
|
-
this._configParser.autoCompile();
|
|
45
|
-
}
|
|
46
40
|
/**
|
|
47
41
|
* add config file
|
|
48
42
|
*/
|
|
49
43
|
try {
|
|
50
|
-
await this._configParser.
|
|
44
|
+
await this._configParser.initialize(args);
|
|
51
45
|
}
|
|
52
46
|
catch (err) {
|
|
53
47
|
log.error(`Failed to read config file: ${err.stack}`);
|
|
54
48
|
return this._shutdown(1, retries, true);
|
|
55
49
|
}
|
|
56
|
-
/**
|
|
57
|
-
* merge cli arguments again as some might have been overwritten by the config
|
|
58
|
-
*/
|
|
59
|
-
this._configParser.merge(args);
|
|
60
50
|
this._config = this._configParser.getConfig();
|
|
61
51
|
this._specFileRetryAttempts = (this._config.specFileRetries || 0) - (retries || 0);
|
|
62
52
|
logger.setLogLevelsConfig(this._config.logLevels, this._config.logLevel);
|
package/build/reporter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reporter.d.ts","sourceRoot":"","sources":["../src/reporter.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAa,MAAM,aAAa,CAAA;AAKnE;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,YAAY;;IAKzB,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,IAAI;IACL,IAAI,EAAE,YAAY,CAAC,gBAAgB;IAN9C,OAAO,CAAC,UAAU,CAAmC;IACrD,OAAO,CAAC,SAAS,CAA4B;gBAGjC,OAAO,EAAE,OAAO,CAAC,UAAU,EAC3B,IAAI,EAAE,MAAM,EACb,IAAI,EAAE,YAAY,CAAC,gBAAgB;IAGxC,aAAa;IAMnB;;;;;OAKG;IACH,IAAI,CAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG;IAuB7B,SAAS,CAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,GAAG,KAAK,IAAI;IAItC,UAAU,CAAE,IAAI,EAAE,MAAM;
|
|
1
|
+
{"version":3,"file":"reporter.d.ts","sourceRoot":"","sources":["../src/reporter.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAa,MAAM,aAAa,CAAA;AAKnE;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,YAAY;;IAKzB,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,IAAI;IACL,IAAI,EAAE,YAAY,CAAC,gBAAgB;IAN9C,OAAO,CAAC,UAAU,CAAmC;IACrD,OAAO,CAAC,SAAS,CAA4B;gBAGjC,OAAO,EAAE,OAAO,CAAC,UAAU,EAC3B,IAAI,EAAE,MAAM,EACb,IAAI,EAAE,YAAY,CAAC,gBAAgB;IAGxC,aAAa;IAMnB;;;;;OAKG;IACH,IAAI,CAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG;IAuB7B,SAAS,CAAE,QAAQ,EAAE,CAAC,EAAE,EAAE,GAAG,KAAK,IAAI;IAItC,UAAU,CAAE,IAAI,EAAE,MAAM;IAuCxB;;OAEG;IACH,oBAAoB,CAAE,QAAQ,EAAE,MAAM;yBAEc,OAAO;;IAoB3D;;;OAGG;IACH,WAAW;IA2BX;;OAEG;YACW,aAAa;CAoE9B"}
|
package/build/reporter.js
CHANGED
|
@@ -56,7 +56,7 @@ export default class BaseReporter {
|
|
|
56
56
|
const reporterOptions = this._config.reporters.find((reporter) => (Array.isArray(reporter) &&
|
|
57
57
|
(reporter[0] === name ||
|
|
58
58
|
typeof reporter[0] === 'function' && reporter[0].name === name)));
|
|
59
|
-
if (reporterOptions) {
|
|
59
|
+
if (reporterOptions && Array.isArray(reporterOptions)) {
|
|
60
60
|
const fileformat = reporterOptions[1].outputFileFormat;
|
|
61
61
|
options.cid = this._cid;
|
|
62
62
|
options.capabilities = this.caps;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/runner",
|
|
3
|
-
"version": "8.0.0-alpha.
|
|
3
|
+
"version": "8.0.0-alpha.537+c2761a175",
|
|
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",
|
|
@@ -26,19 +26,19 @@
|
|
|
26
26
|
"types": "./build/index.d.ts",
|
|
27
27
|
"typeScriptVersion": "3.8.3",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@wdio/config": "8.0.0-alpha.
|
|
30
|
-
"@wdio/globals": "8.0.0-alpha.
|
|
31
|
-
"@wdio/logger": "8.0.0-alpha.
|
|
32
|
-
"@wdio/types": "8.0.0-alpha.
|
|
33
|
-
"@wdio/utils": "8.0.0-alpha.
|
|
29
|
+
"@wdio/config": "8.0.0-alpha.537+c2761a175",
|
|
30
|
+
"@wdio/globals": "8.0.0-alpha.537+c2761a175",
|
|
31
|
+
"@wdio/logger": "8.0.0-alpha.537+c2761a175",
|
|
32
|
+
"@wdio/types": "8.0.0-alpha.537+c2761a175",
|
|
33
|
+
"@wdio/utils": "8.0.0-alpha.537+c2761a175",
|
|
34
34
|
"deepmerge-ts": "^4.2.2",
|
|
35
35
|
"expect-webdriverio": "^4.0.0-alpha.3",
|
|
36
36
|
"gaze": "^1.1.2",
|
|
37
|
-
"webdriver": "8.0.0-alpha.
|
|
38
|
-
"webdriverio": "8.0.0-alpha.
|
|
37
|
+
"webdriver": "8.0.0-alpha.537+c2761a175",
|
|
38
|
+
"webdriverio": "8.0.0-alpha.537+c2761a175"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "c2761a17597c5dfbd349445fc203183fb004c3f5"
|
|
44
44
|
}
|