@testdino/playwright 1.0.3 → 1.0.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.
package/dist/index.d.mts CHANGED
@@ -338,9 +338,9 @@ interface TestdinoConfig {
338
338
  */
339
339
  token?: string;
340
340
  /**
341
- * CI build ID for grouping sharded runs
341
+ * CI run ID for grouping sharded runs
342
342
  */
343
- ciBuildId?: string;
343
+ ciRunId?: string;
344
344
  /**
345
345
  * Server URL (for development/testing)
346
346
  */
@@ -378,6 +378,7 @@ interface BaseEvent {
378
378
  interface TestRunBeginEvent extends BaseEvent {
379
379
  type: 'run:begin';
380
380
  metadata: CompleteMetadata;
381
+ ciRunId?: string;
381
382
  }
382
383
  interface TestBeginEvent extends BaseEvent {
383
384
  type: 'test:begin';
package/dist/index.d.ts CHANGED
@@ -338,9 +338,9 @@ interface TestdinoConfig {
338
338
  */
339
339
  token?: string;
340
340
  /**
341
- * CI build ID for grouping sharded runs
341
+ * CI run ID for grouping sharded runs
342
342
  */
343
- ciBuildId?: string;
343
+ ciRunId?: string;
344
344
  /**
345
345
  * Server URL (for development/testing)
346
346
  */
@@ -378,6 +378,7 @@ interface BaseEvent {
378
378
  interface TestRunBeginEvent extends BaseEvent {
379
379
  type: 'run:begin';
380
380
  metadata: CompleteMetadata;
381
+ ciRunId?: string;
381
382
  }
382
383
  interface TestBeginEvent extends BaseEvent {
383
384
  type: 'test:begin';
package/dist/index.js CHANGED
@@ -1799,7 +1799,7 @@ var TestdinoReporter = class {
1799
1799
  mappedConfig.debug = cliConfig.debug;
1800
1800
  }
1801
1801
  if (cliConfig.ciRunId !== void 0 && typeof cliConfig.ciRunId === "string") {
1802
- mappedConfig.ciBuildId = cliConfig.ciRunId;
1802
+ mappedConfig.ciRunId = cliConfig.ciRunId;
1803
1803
  }
1804
1804
  if (cliConfig.artifacts !== void 0 && typeof cliConfig.artifacts === "boolean") {
1805
1805
  mappedConfig.artifacts = cliConfig.artifacts;
@@ -1901,8 +1901,23 @@ var TestdinoReporter = class {
1901
1901
  type: "run:begin",
1902
1902
  runId: this.runId,
1903
1903
  metadata,
1904
+ ciRunId: this.config.ciRunId,
1905
+ // Include ciRunId for shard grouping
1904
1906
  ...this.getEventMetadata()
1905
1907
  };
1908
+ if (this.config.debug) {
1909
+ console.log(`\u{1F50D} TestDino: run:begin event details:`);
1910
+ console.log(` runId: ${this.runId}`);
1911
+ console.log(` ciRunId: ${this.config.ciRunId ?? "(not set)"}`);
1912
+ console.log(` shard: ${config?.shard ? `${config.shard.current}/${config.shard.total}` : "(not sharded)"}`);
1913
+ if (metadata.skeleton) {
1914
+ console.log(` skeleton.totalTests: ${metadata.skeleton.totalTests}`);
1915
+ console.log(` skeleton.suites: ${metadata.skeleton.suites?.length ?? 0}`);
1916
+ console.log(` skeleton: ${JSON.stringify(metadata.skeleton, null, 2)}`);
1917
+ } else {
1918
+ console.log(` skeleton: (not available)`);
1919
+ }
1920
+ }
1906
1921
  await this.sendEvents([beginEvent]);
1907
1922
  this.registerSignalHandlers();
1908
1923
  return true;