@wdio/runner 9.14.0 → 9.16.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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAc1C,OAAO,KAAK,EACoD,SAAS,EAExE,MAAM,YAAY,CAAA;AAInB,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,YAAY;;IAC5C,OAAO,CAAC,QAAQ,CAAC,CAAsD;IACvE,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,CAA8F;IAC5G,OAAO,CAAC,iBAAiB,CAAC,CAAO;IAEjC;;;;;;;;;OASG;IACG,GAAG,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,SAAS;IAsNpE;;;;;;OAMG;YACW,YAAY;IAoC1B;;;;;OAKG;YACW,aAAa;IAsE3B;;OAEG;YACW,SAAS;IAoCvB;;;OAGG;IACG,UAAU,CAAC,OAAO,CAAC,EAAE,GAAG;CAwEjC;AAED,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,eAAe,CAAA;AACvD,cAAc,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAc1C,OAAO,KAAK,EACoD,SAAS,EAExE,MAAM,YAAY,CAAA;AAInB,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,YAAY;;IAC5C,OAAO,CAAC,QAAQ,CAAC,CAAsD;IACvE,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,CAA8F;IAC5G,OAAO,CAAC,iBAAiB,CAAC,CAAO;IAEjC;;;;;;;;;OASG;IACG,GAAG,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,SAAS;IA+NpE;;;;;;OAMG;YACW,YAAY;IAoC1B;;;;;OAKG;YACW,aAAa;IAsE3B;;OAEG;YACW,SAAS;IAoCvB;;;OAGG;IACG,UAAU,CAAC,OAAO,CAAC,EAAE,GAAG;CAwEjC;AAED,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,eAAe,CAAA;AACvD,cAAc,YAAY,CAAA"}
package/build/index.js CHANGED
@@ -4,7 +4,7 @@ import logger4 from "@wdio/logger";
4
4
  import { initializeWorkerService, initializePlugin as initializePlugin2, executeHooksWithArgs as executeHooksWithArgs2 } from "@wdio/utils";
5
5
  import { ConfigParser } from "@wdio/config/node";
6
6
  import { _setGlobal } from "@wdio/globals";
7
- import { expect as expect2, setOptions, SnapshotService } from "expect-webdriverio";
7
+ import { expect as expect2, setOptions, SnapshotService, SoftAssertionService } from "expect-webdriverio";
8
8
  import { attach as attach2 } from "webdriverio";
9
9
 
10
10
  // src/browser.ts
@@ -655,12 +655,19 @@ var Runner = class extends EventEmitter {
655
655
  this._config = this._configParser.getConfig();
656
656
  this._specFileRetryAttempts = (this._config.specFileRetries || 0) - (retries || 0);
657
657
  logger4.setLogLevelsConfig(this._config.logLevels, this._config.logLevel);
658
+ if (this._config.maskingPatterns) {
659
+ logger4.setMaskingPatterns(this._config.maskingPatterns);
660
+ }
658
661
  const capabilities = this._configParser.getCapabilities();
659
662
  const isMultiremote = this._isMultiremote = !Array.isArray(capabilities) || Object.values(caps).length > 0 && Object.values(caps).every((c) => typeof c === "object" && c.capabilities);
663
+ const softAssertionService = new SoftAssertionService({
664
+ autoAssertOnTestEnd: this._config.autoAssertOnTestEnd || true
665
+ }, this._caps, this._config);
660
666
  const snapshotService = SnapshotService.initiate({
661
667
  updateState: this._config.updateSnapshots,
662
668
  resolveSnapshotPath: this._config.resolveSnapshotPath
663
669
  });
670
+ this._configParser.addService(softAssertionService);
664
671
  this._configParser.addService(snapshotService);
665
672
  this._caps = this._isMultiremote ? Object.entries(caps).reduce((filteredCaps, [browserName, browserCaps]) => {
666
673
  const ex = browserCaps.capabilities["wdio:exclude"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/runner",
3
- "version": "9.14.0",
3
+ "version": "9.16.0",
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",
@@ -32,19 +32,30 @@
32
32
  "typeScriptVersion": "3.8.3",
33
33
  "dependencies": {
34
34
  "@types/node": "^20.11.28",
35
- "@wdio/config": "9.14.0",
36
- "@wdio/dot-reporter": "9.14.0",
37
- "@wdio/globals": "9.14.0",
38
- "@wdio/logger": "9.4.4",
39
- "@wdio/types": "9.14.0",
40
- "@wdio/utils": "9.14.0",
35
+ "@wdio/config": "9.16.0",
36
+ "@wdio/dot-reporter": "9.16.0",
37
+ "@wdio/globals": "9.16.0",
38
+ "@wdio/logger": "9.15.0",
39
+ "@wdio/types": "9.16.0",
40
+ "@wdio/utils": "9.16.0",
41
41
  "deepmerge-ts": "^7.0.3",
42
- "expect-webdriverio": "^5.1.0",
43
- "webdriver": "9.14.0",
44
- "webdriverio": "9.14.0"
42
+ "webdriver": "9.16.0",
43
+ "webdriverio": "9.16.0"
44
+ },
45
+ "peerDependencies": {
46
+ "expect-webdriverio": "^5.3.2",
47
+ "webdriverio": "workspace:*"
48
+ },
49
+ "peerDependenciesMeta": {
50
+ "expect-webdriverio": {
51
+ "optional": false
52
+ },
53
+ "webdriverio": {
54
+ "optional": false
55
+ }
45
56
  },
46
57
  "publishConfig": {
47
58
  "access": "public"
48
59
  },
49
- "gitHead": "f8e62f63eb087a06556e8c85e042403da0e4485e"
60
+ "gitHead": "a4539d01aeee8ab9580a99321a235088d69bd17a"
50
61
  }