@stanterprise/playwright-reporter 0.0.15 → 0.0.16
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.
|
@@ -37,6 +37,8 @@ function handleOnTestEndEvent(test, result, runId, client, options) {
|
|
|
37
37
|
errors: errors,
|
|
38
38
|
metadata: (0, utils_1.toMetadataMap)(metadata),
|
|
39
39
|
tags: test.tags,
|
|
40
|
+
retry_index: result.retry,
|
|
41
|
+
retry_count: test.retries,
|
|
40
42
|
}),
|
|
41
43
|
});
|
|
42
44
|
// Serialize once to capture payload size for potential error logging
|
|
@@ -17,6 +17,7 @@ function handleOnTestFailEvent(test, result, runId, grpcClient, options) {
|
|
|
17
17
|
stack_trace: stackTrace,
|
|
18
18
|
timestamp: (0, utils_1.createTimestampFromMs)(Date.now()),
|
|
19
19
|
attachments: attachments,
|
|
20
|
+
retry_index: result.retry,
|
|
20
21
|
});
|
|
21
22
|
// Fire-and-forget to avoid slowing tests
|
|
22
23
|
(0, grpcClient_1.reportUnary)(options, grpcClient, "/testsystem.v1.observer.TestEventCollector/ReportTestFailure", request, options.grpcTimeout).catch((e) => console.error("Failed to report test failure", e));
|
package/dist/reporter.js
CHANGED
|
@@ -135,7 +135,9 @@ class StanterpriseReporter {
|
|
|
135
135
|
console.error(`Stanterprise Reporter: Standard error output - ${chunk.toString()}`);
|
|
136
136
|
}
|
|
137
137
|
onStdOut(chunk, test, result) {
|
|
138
|
-
|
|
138
|
+
if (this.options.verbose) {
|
|
139
|
+
console.log(`Stanterprise Reporter: Standard output - ${chunk.toString()}`);
|
|
140
|
+
}
|
|
139
141
|
}
|
|
140
142
|
}
|
|
141
143
|
exports.default = StanterpriseReporter;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stanterprise/playwright-reporter",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.16",
|
|
4
4
|
"description": "Custom Playwright test reporter that sends test results to Stanterprise via gRPC",
|
|
5
5
|
"homepage": "https://github.com/stanterprise/stanterprise-playwright-reporter#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -53,6 +53,6 @@
|
|
|
53
53
|
"@grpc/grpc-js": "^1.14.1",
|
|
54
54
|
"@protobuf-ts/grpc-transport": "^2.11.1",
|
|
55
55
|
"@protobuf-ts/grpcweb-transport": "^2.11.1",
|
|
56
|
-
"@stanterprise/protobuf": "^0.0.
|
|
56
|
+
"@stanterprise/protobuf": "^0.0.21"
|
|
57
57
|
}
|
|
58
58
|
}
|