@wdio/reporter 10.1.0-alpha.29 → 10.1.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.cjs CHANGED
@@ -492,6 +492,30 @@ var WDIOReporter = class extends import_node_events.EventEmitter {
492
492
  }
493
493
  this.outputStream = (this.options.stdout || !this.options.logFile) && this.options.writeStream ? this.options.writeStream : import_node_fs.default.createWriteStream(this.options.logFile);
494
494
  let currentTest;
495
+ const contextTests = /* @__PURE__ */ new Map();
496
+ const contextByUid = /* @__PURE__ */ new Map();
497
+ const retriesByContext = /* @__PURE__ */ new Map();
498
+ const getContextId = (test) => test.contextId ?? contextByUid.get(test.uid);
499
+ const getRetries = (contextId) => contextId ? retriesByContext.get(contextId) ?? 0 : this.retries;
500
+ const setRetries = (contextId, count) => {
501
+ if (contextId) {
502
+ retriesByContext.set(contextId, count);
503
+ } else {
504
+ this.retries = count;
505
+ }
506
+ };
507
+ const trackContext = (test, testStat) => {
508
+ if (test.contextId) {
509
+ contextTests.set(test.contextId, testStat);
510
+ contextByUid.set(testStat.uid, test.contextId);
511
+ }
512
+ };
513
+ const getCommandTarget = (payload) => {
514
+ if (payload.contextId) {
515
+ return contextTests.get(payload.contextId);
516
+ }
517
+ return contextTests.size === 0 ? currentTest : void 0;
518
+ };
495
519
  const rootSuite = new SuiteStats({
496
520
  title: "(root)",
497
521
  fullTitle: "(root)",
@@ -514,7 +538,7 @@ var WDIOReporter = class extends import_node_events.EventEmitter {
514
538
  this.currentSpec = params.file;
515
539
  }
516
540
  const suite = new SuiteStats(params);
517
- const currentSuite = this.currentSuites[this.currentSuites.length - 1];
541
+ const currentSuite = this.#owningSuite(params.parentUid);
518
542
  currentSuite.suites.push(suite);
519
543
  this.currentSuites.push(suite);
520
544
  this.suites[suite.uid] = suite;
@@ -527,7 +551,7 @@ var WDIOReporter = class extends import_node_events.EventEmitter {
527
551
  });
528
552
  this.on("hook:start", (hook) => {
529
553
  const hookStats = new HookStats(hook);
530
- const currentSuite = this.currentSuites[this.currentSuites.length - 1];
554
+ const currentSuite = this.#owningSuite(hook.parentUid);
531
555
  currentSuite.hooks.push(hookStats);
532
556
  currentSuite.hooksAndTests.push(hookStats);
533
557
  this.hooks[hook.uid] = hookStats;
@@ -540,9 +564,10 @@ var WDIOReporter = class extends import_node_events.EventEmitter {
540
564
  this.onHookEnd(hookStats);
541
565
  });
542
566
  this.on("test:start", (test) => {
543
- test.retries = this.retries;
567
+ test.retries = getRetries(test.contextId);
544
568
  currentTest = new TestStats(test);
545
- const currentSuite = this.currentSuites[this.currentSuites.length - 1];
569
+ trackContext(test, currentTest);
570
+ const currentSuite = this.#owningSuite(test.parentUid);
546
571
  currentSuite.tests.push(currentTest);
547
572
  currentSuite.hooksAndTests.push(currentTest);
548
573
  this.tests[test.uid] = currentTest;
@@ -556,8 +581,11 @@ var WDIOReporter = class extends import_node_events.EventEmitter {
556
581
  this.onTestPass(testStat);
557
582
  });
558
583
  this.on("test:skip", (test) => {
559
- const testStat = this.tests[test.uid];
560
- currentTest.skip(test.pendingReason);
584
+ const testStat = this.tests[test.uid] ?? currentTest;
585
+ if (!testStat) {
586
+ return;
587
+ }
588
+ testStat.skip(test.pendingReason);
561
589
  this.counts.skipping++;
562
590
  this.counts.tests++;
563
591
  this.onTestSkip(testStat);
@@ -573,24 +601,37 @@ var WDIOReporter = class extends import_node_events.EventEmitter {
573
601
  const testStat = this.tests[test.uid];
574
602
  testStat.fail(getErrorsFromEvent(test));
575
603
  this.onTestRetry(testStat);
576
- this.retries++;
604
+ const contextId = getContextId(test);
605
+ setRetries(contextId, getRetries(contextId) + 1);
577
606
  });
578
607
  this.on("test:pending", (test) => {
579
- test.retries = this.retries;
580
- const currentSuite = this.currentSuites[this.currentSuites.length - 1];
608
+ test.retries = getRetries(test.contextId);
609
+ const currentSuite = this.#owningSuite(test.parentUid);
610
+ const existingTest = this.tests[test.uid];
611
+ const startedTest = existingTest?.state === "pending" && !existingTest.end ? existingTest : void 0;
581
612
  currentTest = new TestStats(test);
582
- if (test.uid in this.tests && this.tests[test.uid].state !== "pending") {
583
- currentTest.uid = test.uid in this.tests ? "skipped-" + this.counts.skipping : currentTest.uid;
613
+ if (startedTest) {
614
+ currentTest.start = startedTest.start;
615
+ currentTest.output = startedTest.output;
616
+ }
617
+ currentTest.complete();
618
+ if (existingTest && existingTest.state !== "pending") {
619
+ currentTest.uid = "skipped-" + this.counts.skipping;
584
620
  }
585
- const suiteTests = currentSuite.tests;
586
- if (!suiteTests.length || currentTest.uid !== suiteTests[suiteTests.length - 1].uid) {
621
+ const testIndex = currentSuite.tests.findLastIndex((entry) => entry.uid === currentTest.uid);
622
+ if (testIndex === -1) {
587
623
  currentSuite.tests.push(currentTest);
624
+ } else {
625
+ currentSuite.tests[testIndex] = currentTest;
626
+ }
627
+ const hooksAndTestsIndex = currentSuite.hooksAndTests.findLastIndex((entry) => entry.uid === currentTest.uid);
628
+ if (hooksAndTestsIndex === -1) {
588
629
  currentSuite.hooksAndTests.push(currentTest);
589
630
  } else {
590
- suiteTests[suiteTests.length - 1] = currentTest;
591
- currentSuite.hooksAndTests[currentSuite.hooksAndTests.length - 1] = currentTest;
631
+ currentSuite.hooksAndTests[hooksAndTestsIndex] = currentTest;
592
632
  }
593
633
  this.tests[currentTest.uid] = currentTest;
634
+ trackContext(test, currentTest);
594
635
  if (test.state === "pending") {
595
636
  currentTest.state = "pending";
596
637
  this.counts.pending++;
@@ -605,13 +646,23 @@ var WDIOReporter = class extends import_node_events.EventEmitter {
605
646
  });
606
647
  this.on("test:end", (test) => {
607
648
  const testStat = this.tests[test.uid];
608
- this.retries = 0;
649
+ const contextId = getContextId(test);
650
+ if (contextId) {
651
+ retriesByContext.delete(contextId);
652
+ contextTests.delete(contextId);
653
+ contextByUid.delete(test.uid);
654
+ } else {
655
+ this.retries = 0;
656
+ }
609
657
  this.onTestEnd(testStat);
610
658
  });
611
659
  this.on("suite:end", (suite) => {
612
660
  const suiteStat = this.suites[suite.uid];
613
661
  suiteStat.complete();
614
- this.currentSuites.pop();
662
+ const index = this.currentSuites.lastIndexOf(suiteStat);
663
+ if (index !== -1) {
664
+ this.currentSuites.splice(index, 1);
665
+ }
615
666
  this.onSuiteEnd(suiteStat);
616
667
  });
617
668
  this.on("runner:end", (runner) => {
@@ -629,7 +680,8 @@ var WDIOReporter = class extends import_node_events.EventEmitter {
629
680
  }
630
681
  });
631
682
  this.on("client:beforeCommand", (payload) => {
632
- if (!currentTest) {
683
+ const target = getCommandTarget(payload);
684
+ if (!target) {
633
685
  return;
634
686
  }
635
687
  if (payload.body?.script) {
@@ -638,10 +690,11 @@ var WDIOReporter = class extends import_node_events.EventEmitter {
638
690
  script: transformCommandScript(payload.body.script)
639
691
  };
640
692
  }
641
- currentTest.output.push(Object.assign(payload, { type: "command" }));
693
+ target.output.push(Object.assign(payload, { type: "command" }));
642
694
  });
643
695
  this.on("client:afterCommand", (payload) => {
644
- if (!currentTest) {
696
+ const target = getCommandTarget(payload);
697
+ if (!target) {
645
698
  return;
646
699
  }
647
700
  if (payload.body?.script) {
@@ -650,7 +703,7 @@ var WDIOReporter = class extends import_node_events.EventEmitter {
650
703
  script: transformCommandScript(payload.body.script)
651
704
  };
652
705
  }
653
- currentTest.output.push(Object.assign(payload, { type: "result" }));
706
+ target.output.push(Object.assign(payload, { type: "result" }));
654
707
  });
655
708
  }
656
709
  options;
@@ -674,6 +727,12 @@ var WDIOReporter = class extends import_node_events.EventEmitter {
674
727
  isContentPresent = false;
675
728
  specs = [];
676
729
  currentSpec;
730
+ #owningSuite(parentUid) {
731
+ if (parentUid === null) {
732
+ return this.currentSuites[0];
733
+ }
734
+ return parentUid && this.suites[parentUid] || this.currentSuites[this.currentSuites.length - 1];
735
+ }
677
736
  /**
678
737
  * allows reporter to stale process shutdown process until required sync work
679
738
  * is done (e.g. when having to send data to some server or any other async work)
package/build/index.d.ts CHANGED
@@ -10,6 +10,7 @@ type CustomWriteStream = {
10
10
  write: (content: unknown) => boolean;
11
11
  };
12
12
  export default class WDIOReporter extends EventEmitter {
13
+ #private;
13
14
  options: Partial<Reporters.Options>;
14
15
  outputStream: WriteStream | CustomWriteStream;
15
16
  failures: number;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAW,MAAM,aAAa,CAAA;AAIrD,OAAO,UAAU,MAAM,kBAAkB,CAAA;AAEzC,OAAO,SAAS,MAAM,iBAAiB,CAAA;AACvC,OAAO,SAAS,EAAE,EAAE,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtD,OAAO,WAAW,MAAM,mBAAmB,CAAA;AAC3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,WAAW,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAEjG,KAAK,iBAAiB,GAAG;IAAE,KAAK,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAA;CAAE,CAAA;AAEjE,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAAY;IAsB/B,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC;IArBtD,YAAY,EAAE,WAAW,GAAG,iBAAiB,CAAA;IAC7C,QAAQ,SAAI;IACZ,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAK;IACvC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAK;IACrC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAI;IACpC,aAAa,EAAE,UAAU,EAAE,CAAK;IAChC,MAAM;;;;;;;;MAQL;IACD,OAAO,SAAI;IACX,UAAU,CAAC,EAAE,WAAW,CAAA;IACxB,gBAA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B,aAAa,CAAC,YAAY,EAAE,WAAW;IACvC,eAAe,CAAC,YAAY,EAAE,iBAAiB;IAC/C,cAAc,CAAC,YAAY,EAAE,gBAAgB;IAC7C,iBAAiB,CAAC,cAAc,EAAE,OAAO;IACzC,gBAAgB,CAAC,cAAc,EAAE,OAAO;IACxC,YAAY,CAAC,WAAW,EAAE,UAAU;IACpC,WAAW,CAAC,SAAS,EAAE,SAAS;IAChC,SAAS,CAAC,UAAU,EAAE,SAAS;IAC/B,WAAW,CAAC,UAAU,EAAE,SAAS;IACjC,UAAU,CAAC,UAAU,EAAE,SAAS;IAChC,UAAU,CAAC,UAAU,EAAE,SAAS;IAChC,WAAW,CAAC,UAAU,EAAE,SAAS;IACjC,UAAU,CAAC,UAAU,EAAE,SAAS;IAChC,aAAa,CAAC,UAAU,EAAE,SAAS;IACnC,SAAS,CAAC,UAAU,EAAE,SAAS;IAC/B,YAAY,CAAC,WAAW,EAAE,UAAU;IACpC,UAAU,CAAC,WAAW,EAAE,UAAU;IAClC,WAAW,CAAC,YAAY,EAAE,WAAW;CACxC;AAED;;;;GAIG;AACH,iBAAS,cAAc,CAAC,IAAI,EAAE,WAAW,CAAC,YAAY,OAWrD;AAED,OAAO,EACH,UAAU,EAAE,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,iBAAiB,EACrE,gBAAgB,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,EAChE,CAAA"}
package/build/index.js CHANGED
@@ -452,6 +452,30 @@ var WDIOReporter = class extends EventEmitter {
452
452
  }
453
453
  this.outputStream = (this.options.stdout || !this.options.logFile) && this.options.writeStream ? this.options.writeStream : fs.createWriteStream(this.options.logFile);
454
454
  let currentTest;
455
+ const contextTests = /* @__PURE__ */ new Map();
456
+ const contextByUid = /* @__PURE__ */ new Map();
457
+ const retriesByContext = /* @__PURE__ */ new Map();
458
+ const getContextId = (test) => test.contextId ?? contextByUid.get(test.uid);
459
+ const getRetries = (contextId) => contextId ? retriesByContext.get(contextId) ?? 0 : this.retries;
460
+ const setRetries = (contextId, count) => {
461
+ if (contextId) {
462
+ retriesByContext.set(contextId, count);
463
+ } else {
464
+ this.retries = count;
465
+ }
466
+ };
467
+ const trackContext = (test, testStat) => {
468
+ if (test.contextId) {
469
+ contextTests.set(test.contextId, testStat);
470
+ contextByUid.set(testStat.uid, test.contextId);
471
+ }
472
+ };
473
+ const getCommandTarget = (payload) => {
474
+ if (payload.contextId) {
475
+ return contextTests.get(payload.contextId);
476
+ }
477
+ return contextTests.size === 0 ? currentTest : void 0;
478
+ };
455
479
  const rootSuite = new SuiteStats({
456
480
  title: "(root)",
457
481
  fullTitle: "(root)",
@@ -474,7 +498,7 @@ var WDIOReporter = class extends EventEmitter {
474
498
  this.currentSpec = params.file;
475
499
  }
476
500
  const suite = new SuiteStats(params);
477
- const currentSuite = this.currentSuites[this.currentSuites.length - 1];
501
+ const currentSuite = this.#owningSuite(params.parentUid);
478
502
  currentSuite.suites.push(suite);
479
503
  this.currentSuites.push(suite);
480
504
  this.suites[suite.uid] = suite;
@@ -487,7 +511,7 @@ var WDIOReporter = class extends EventEmitter {
487
511
  });
488
512
  this.on("hook:start", (hook) => {
489
513
  const hookStats = new HookStats(hook);
490
- const currentSuite = this.currentSuites[this.currentSuites.length - 1];
514
+ const currentSuite = this.#owningSuite(hook.parentUid);
491
515
  currentSuite.hooks.push(hookStats);
492
516
  currentSuite.hooksAndTests.push(hookStats);
493
517
  this.hooks[hook.uid] = hookStats;
@@ -500,9 +524,10 @@ var WDIOReporter = class extends EventEmitter {
500
524
  this.onHookEnd(hookStats);
501
525
  });
502
526
  this.on("test:start", (test) => {
503
- test.retries = this.retries;
527
+ test.retries = getRetries(test.contextId);
504
528
  currentTest = new TestStats(test);
505
- const currentSuite = this.currentSuites[this.currentSuites.length - 1];
529
+ trackContext(test, currentTest);
530
+ const currentSuite = this.#owningSuite(test.parentUid);
506
531
  currentSuite.tests.push(currentTest);
507
532
  currentSuite.hooksAndTests.push(currentTest);
508
533
  this.tests[test.uid] = currentTest;
@@ -516,8 +541,11 @@ var WDIOReporter = class extends EventEmitter {
516
541
  this.onTestPass(testStat);
517
542
  });
518
543
  this.on("test:skip", (test) => {
519
- const testStat = this.tests[test.uid];
520
- currentTest.skip(test.pendingReason);
544
+ const testStat = this.tests[test.uid] ?? currentTest;
545
+ if (!testStat) {
546
+ return;
547
+ }
548
+ testStat.skip(test.pendingReason);
521
549
  this.counts.skipping++;
522
550
  this.counts.tests++;
523
551
  this.onTestSkip(testStat);
@@ -533,24 +561,37 @@ var WDIOReporter = class extends EventEmitter {
533
561
  const testStat = this.tests[test.uid];
534
562
  testStat.fail(getErrorsFromEvent(test));
535
563
  this.onTestRetry(testStat);
536
- this.retries++;
564
+ const contextId = getContextId(test);
565
+ setRetries(contextId, getRetries(contextId) + 1);
537
566
  });
538
567
  this.on("test:pending", (test) => {
539
- test.retries = this.retries;
540
- const currentSuite = this.currentSuites[this.currentSuites.length - 1];
568
+ test.retries = getRetries(test.contextId);
569
+ const currentSuite = this.#owningSuite(test.parentUid);
570
+ const existingTest = this.tests[test.uid];
571
+ const startedTest = existingTest?.state === "pending" && !existingTest.end ? existingTest : void 0;
541
572
  currentTest = new TestStats(test);
542
- if (test.uid in this.tests && this.tests[test.uid].state !== "pending") {
543
- currentTest.uid = test.uid in this.tests ? "skipped-" + this.counts.skipping : currentTest.uid;
573
+ if (startedTest) {
574
+ currentTest.start = startedTest.start;
575
+ currentTest.output = startedTest.output;
576
+ }
577
+ currentTest.complete();
578
+ if (existingTest && existingTest.state !== "pending") {
579
+ currentTest.uid = "skipped-" + this.counts.skipping;
544
580
  }
545
- const suiteTests = currentSuite.tests;
546
- if (!suiteTests.length || currentTest.uid !== suiteTests[suiteTests.length - 1].uid) {
581
+ const testIndex = currentSuite.tests.findLastIndex((entry) => entry.uid === currentTest.uid);
582
+ if (testIndex === -1) {
547
583
  currentSuite.tests.push(currentTest);
584
+ } else {
585
+ currentSuite.tests[testIndex] = currentTest;
586
+ }
587
+ const hooksAndTestsIndex = currentSuite.hooksAndTests.findLastIndex((entry) => entry.uid === currentTest.uid);
588
+ if (hooksAndTestsIndex === -1) {
548
589
  currentSuite.hooksAndTests.push(currentTest);
549
590
  } else {
550
- suiteTests[suiteTests.length - 1] = currentTest;
551
- currentSuite.hooksAndTests[currentSuite.hooksAndTests.length - 1] = currentTest;
591
+ currentSuite.hooksAndTests[hooksAndTestsIndex] = currentTest;
552
592
  }
553
593
  this.tests[currentTest.uid] = currentTest;
594
+ trackContext(test, currentTest);
554
595
  if (test.state === "pending") {
555
596
  currentTest.state = "pending";
556
597
  this.counts.pending++;
@@ -565,13 +606,23 @@ var WDIOReporter = class extends EventEmitter {
565
606
  });
566
607
  this.on("test:end", (test) => {
567
608
  const testStat = this.tests[test.uid];
568
- this.retries = 0;
609
+ const contextId = getContextId(test);
610
+ if (contextId) {
611
+ retriesByContext.delete(contextId);
612
+ contextTests.delete(contextId);
613
+ contextByUid.delete(test.uid);
614
+ } else {
615
+ this.retries = 0;
616
+ }
569
617
  this.onTestEnd(testStat);
570
618
  });
571
619
  this.on("suite:end", (suite) => {
572
620
  const suiteStat = this.suites[suite.uid];
573
621
  suiteStat.complete();
574
- this.currentSuites.pop();
622
+ const index = this.currentSuites.lastIndexOf(suiteStat);
623
+ if (index !== -1) {
624
+ this.currentSuites.splice(index, 1);
625
+ }
575
626
  this.onSuiteEnd(suiteStat);
576
627
  });
577
628
  this.on("runner:end", (runner) => {
@@ -589,7 +640,8 @@ var WDIOReporter = class extends EventEmitter {
589
640
  }
590
641
  });
591
642
  this.on("client:beforeCommand", (payload) => {
592
- if (!currentTest) {
643
+ const target = getCommandTarget(payload);
644
+ if (!target) {
593
645
  return;
594
646
  }
595
647
  if (payload.body?.script) {
@@ -598,10 +650,11 @@ var WDIOReporter = class extends EventEmitter {
598
650
  script: transformCommandScript(payload.body.script)
599
651
  };
600
652
  }
601
- currentTest.output.push(Object.assign(payload, { type: "command" }));
653
+ target.output.push(Object.assign(payload, { type: "command" }));
602
654
  });
603
655
  this.on("client:afterCommand", (payload) => {
604
- if (!currentTest) {
656
+ const target = getCommandTarget(payload);
657
+ if (!target) {
605
658
  return;
606
659
  }
607
660
  if (payload.body?.script) {
@@ -610,7 +663,7 @@ var WDIOReporter = class extends EventEmitter {
610
663
  script: transformCommandScript(payload.body.script)
611
664
  };
612
665
  }
613
- currentTest.output.push(Object.assign(payload, { type: "result" }));
666
+ target.output.push(Object.assign(payload, { type: "result" }));
614
667
  });
615
668
  }
616
669
  options;
@@ -634,6 +687,12 @@ var WDIOReporter = class extends EventEmitter {
634
687
  isContentPresent = false;
635
688
  specs = [];
636
689
  currentSpec;
690
+ #owningSuite(parentUid) {
691
+ if (parentUid === null) {
692
+ return this.currentSuites[0];
693
+ }
694
+ return parentUid && this.suites[parentUid] || this.currentSuites[this.currentSuites.length - 1];
695
+ }
637
696
  /**
638
697
  * allows reporter to stale process shutdown process until required sync work
639
698
  * is done (e.g. when having to send data to some server or any other async work)
@@ -14,6 +14,8 @@ export interface Hook {
14
14
  errors?: Error[];
15
15
  error?: Error;
16
16
  currentTest?: string;
17
+ /** `null` marks a top-level suite (child of the reporter root); `undefined` falls back to the open-suite stack */
18
+ parentUid?: string | null;
17
19
  }
18
20
  export default class HookStats extends RunnableStats {
19
21
  uid: string;
@@ -1 +1 @@
1
- {"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../src/stats/hook.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,eAAe,CAAA;AAEzC,MAAM,WAAW,IAAI;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,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AAA;IAChB,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,kHAAkH;IAClH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC5B;AAED,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,aAAa;IAChD,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IAEd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,KAAK,EAAE,CAAA;IAChB,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,KAAK,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAA;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAA;gBAEP,MAAM,EAAE,IAAI;IAUzB,QAAQ,CAAE,MAAM,CAAC,EAAE,KAAK,EAAE;CAS7B"}
@@ -6,6 +6,8 @@ export interface Suite {
6
6
  type?: string;
7
7
  title: string;
8
8
  parent?: string;
9
+ /** `null` marks a top-level suite (child of the reporter root); `undefined` falls back to the open-suite stack */
10
+ parentUid?: string | null;
9
11
  fullTitle: string;
10
12
  pending?: boolean;
11
13
  file: string;
@@ -1 +1 @@
1
- {"version":3,"file":"suite.d.ts","sourceRoot":"","sources":["../../src/stats/suite.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,WAAW,CAAA;AACtC,OAAO,aAAa,MAAM,eAAe,CAAA;AACzC,OAAO,KAAK,SAAS,MAAM,WAAW,CAAA;AACtC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,aAAa,CAAA;AAEtC,MAAM,WAAW,KAAK;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;I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AEG;IACH,KAAK;CAMR"}
@@ -18,6 +18,9 @@ export interface Test {
18
18
  retries?: number;
19
19
  argument?: string | Argument;
20
20
  state?: string;
21
+ contextId?: string;
22
+ /** `null` marks a top-level suite (child of the reporter root); `undefined` falls back to the open-suite stack */
23
+ parentUid?: string | null;
21
24
  }
22
25
  interface Output {
23
26
  command: string;
@@ -1 +1 @@
1
- {"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../src/stats/test.ts"],"names":[],"mappings":"AAMA,OAAO,aAAa,MAAM,eAAe,CAAA;AAEzC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAI3C,MAAM,WAAW,IAAI;IACjB,IAAI,EAAE,YAAY,GAAG,WAAW,GAAG,WAAW,GAAG,YAAY,GAAG,cAAc,GAAG,UAAU,GAAG,WAAW,CAAA;IACzG,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,OAAO,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,GAAG,EAAE,MAAM,CAAA;IACX,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,MAAM,CAAC,EAAE,KAAK,EAAE,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,UAAU,MAAM;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,OAAO,EAAE,CAAA;IACjB,MAAM,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAA;I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X,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,KAAK,EAAE,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAA;IAClD,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,MAAM,CAAC,EAAE,KAAK,EAAE,CAAA;IAChB,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;gBAED,IAAI,EAAE,IAAI;IAoBtB,IAAI;IAKJ,IAAI,CAAC,MAAM,EAAE,MAAM;IAKnB,IAAI,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE;IA2BrB,OAAO,CAAC,kBAAkB;CAmC7B"}
package/build/types.d.ts CHANGED
@@ -12,6 +12,7 @@ export interface CommandArgs {
12
12
  retries?: number;
13
13
  command?: string;
14
14
  params?: unknown;
15
+ contextId?: string;
15
16
  }
16
17
  export interface BeforeCommandArgs extends CommandArgs {
17
18
  body: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,GAAG;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,WAAW;IACxB,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,WAAW,iBAAkB,SAAQ,WAAW;IAClD,IAAI,EAAE,OAAO,CAAA;CAChB;AAED,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACjD,MAAM,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,QAAQ;IACrB,IAAI,CAAC,EAAE;QACH,KAAK,EAAE,MAAM,EAAE,CAAA;KAClB,EAAE,CAAA;CACN"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,GAAG;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,WAAW;IACxB,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,iBAAkB,SAAQ,WAAW;IAClD,IAAI,EAAE,OAAO,CAAA;CAChB;AAED,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACjD,MAAM,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,QAAQ;IACrB,IAAI,CAAC,EAAE;QACH,KAAK,EAAE,MAAM,EAAE,CAAA;KAClB,EAAE,CAAA;CACN"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/reporter",
3
- "version": "10.1.0-alpha.29+6a83650b0",
3
+ "version": "10.1.0",
4
4
  "description": "A WebdriverIO utility to help reporting all events",
5
5
  "author": "Christian Bromann <mail@bromann.dev>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-reporter",
@@ -38,8 +38,8 @@
38
38
  "typeScriptVersion": "6.0.3",
39
39
  "dependencies": {
40
40
  "@types/node": "^22.20.4",
41
- "@wdio/types": "10.1.0-alpha.29+6a83650b0",
42
- "diff": "^8.0.4",
41
+ "@wdio/types": "10.1.0",
42
+ "diff": "^9.0.0",
43
43
  "object-inspect": "^1.12.0"
44
44
  },
45
45
  "devDependencies": {
@@ -48,5 +48,5 @@
48
48
  "@types/tmp": "^0.2.3",
49
49
  "tmp": "^0.2.7"
50
50
  },
51
- "gitHead": "6a83650b0073eba209082b9b9cc801c9de146027"
51
+ "gitHead": "f9e88c9fd7b1665f4e85400d8970c53ec02631bb"
52
52
  }