testlens-playwright-reporter 0.2.5 → 0.2.6
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/index.d.ts +2 -2
- package/index.js +9 -2
- package/index.ts +11 -4
- package/lib/index.js +11 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -147,6 +147,13 @@ class TestLensReporter {
|
|
|
147
147
|
// Collect Git information if enabled
|
|
148
148
|
if (this.config.enableGitInfo) {
|
|
149
149
|
this.runMetadata.gitInfo = await this.collectGitInfo();
|
|
150
|
+
if (this.runMetadata.gitInfo) {
|
|
151
|
+
console.log(`📦 Git info collected: branch=${this.runMetadata.gitInfo.branch}, commit=${this.runMetadata.gitInfo.shortCommit}, author=${this.runMetadata.gitInfo.author}`);
|
|
152
|
+
} else {
|
|
153
|
+
console.log(`⚠️ Git info collection returned null - not in a git repository or git not available`);
|
|
154
|
+
}
|
|
155
|
+
} else {
|
|
156
|
+
console.log(`ℹ️ Git info collection disabled (enableGitInfo: false)`);
|
|
150
157
|
}
|
|
151
158
|
|
|
152
159
|
// Add shard information if available
|
|
@@ -543,8 +550,8 @@ class TestLensReporter {
|
|
|
543
550
|
commit,
|
|
544
551
|
shortCommit,
|
|
545
552
|
author,
|
|
546
|
-
commitMessage,
|
|
547
|
-
commitTimestamp,
|
|
553
|
+
message: commitMessage,
|
|
554
|
+
timestamp: commitTimestamp,
|
|
548
555
|
isDirty,
|
|
549
556
|
remoteName,
|
|
550
557
|
remoteUrl
|
package/index.ts
CHANGED
|
@@ -76,8 +76,8 @@ export interface GitInfo {
|
|
|
76
76
|
commit: string;
|
|
77
77
|
shortCommit: string;
|
|
78
78
|
author: string;
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
message: string;
|
|
80
|
+
timestamp: string;
|
|
81
81
|
isDirty: boolean;
|
|
82
82
|
remoteName: string;
|
|
83
83
|
remoteUrl: string;
|
|
@@ -276,6 +276,13 @@ export class TestLensReporter implements Reporter {
|
|
|
276
276
|
// Collect Git information if enabled
|
|
277
277
|
if (this.config.enableGitInfo) {
|
|
278
278
|
this.runMetadata.gitInfo = await this.collectGitInfo();
|
|
279
|
+
if (this.runMetadata.gitInfo) {
|
|
280
|
+
console.log(`📦 Git info collected: branch=${this.runMetadata.gitInfo.branch}, commit=${this.runMetadata.gitInfo.shortCommit}, author=${this.runMetadata.gitInfo.author}`);
|
|
281
|
+
} else {
|
|
282
|
+
console.log(`⚠️ Git info collection returned null - not in a git repository or git not available`);
|
|
283
|
+
}
|
|
284
|
+
} else {
|
|
285
|
+
console.log(`ℹ️ Git info collection disabled (enableGitInfo: false)`);
|
|
279
286
|
}
|
|
280
287
|
|
|
281
288
|
// Add shard information if available
|
|
@@ -657,8 +664,8 @@ export class TestLensReporter implements Reporter {
|
|
|
657
664
|
commit,
|
|
658
665
|
shortCommit,
|
|
659
666
|
author,
|
|
660
|
-
commitMessage,
|
|
661
|
-
commitTimestamp,
|
|
667
|
+
message: commitMessage,
|
|
668
|
+
timestamp: commitTimestamp,
|
|
662
669
|
isDirty,
|
|
663
670
|
remoteName,
|
|
664
671
|
remoteUrl
|
package/lib/index.js
CHANGED
|
@@ -168,6 +168,15 @@ class TestLensReporter {
|
|
|
168
168
|
// Collect Git information if enabled
|
|
169
169
|
if (this.config.enableGitInfo) {
|
|
170
170
|
this.runMetadata.gitInfo = await this.collectGitInfo();
|
|
171
|
+
if (this.runMetadata.gitInfo) {
|
|
172
|
+
console.log(`📦 Git info collected: branch=${this.runMetadata.gitInfo.branch}, commit=${this.runMetadata.gitInfo.shortCommit}, author=${this.runMetadata.gitInfo.author}`);
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
console.log(`⚠️ Git info collection returned null - not in a git repository or git not available`);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
else {
|
|
179
|
+
console.log(`ℹ️ Git info collection disabled (enableGitInfo: false)`);
|
|
171
180
|
}
|
|
172
181
|
// Add shard information if available
|
|
173
182
|
if (config.shard) {
|
|
@@ -507,8 +516,8 @@ class TestLensReporter {
|
|
|
507
516
|
commit,
|
|
508
517
|
shortCommit,
|
|
509
518
|
author,
|
|
510
|
-
commitMessage,
|
|
511
|
-
commitTimestamp,
|
|
519
|
+
message: commitMessage,
|
|
520
|
+
timestamp: commitTimestamp,
|
|
512
521
|
isDirty,
|
|
513
522
|
remoteName,
|
|
514
523
|
remoteUrl
|
package/package.json
CHANGED