@sentinelqa/playwright-reporter 0.1.35 → 0.1.36
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/reporter.js +3 -12
- package/package.json +1 -1
package/dist/reporter.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
const node_1 = require("@sentinelqa/uploader/node");
|
|
3
3
|
const env_1 = require("./env");
|
|
4
4
|
const quickDiagnosis_1 = require("./quickDiagnosis");
|
|
5
|
-
const runHistory_1 = require("./runHistory");
|
|
6
5
|
const { sentinelCaptureFailureContextFromReporter } = require("@sentinelqa/uploader/playwright");
|
|
7
6
|
const colorize = (value, code) => {
|
|
8
7
|
if (!process.stdout.isTTY)
|
|
@@ -46,7 +45,6 @@ class SentinelReporter {
|
|
|
46
45
|
async onEnd() {
|
|
47
46
|
const hasWorkspaceToken = Boolean(process.env.SENTINEL_TOKEN);
|
|
48
47
|
const quickDiagnosis = (0, quickDiagnosis_1.buildQuickDiagnosis)(this.options.playwrightJsonPath);
|
|
49
|
-
const runDiff = (0, runHistory_1.buildRunDiffSummary)(this.options.playwrightJsonPath);
|
|
50
48
|
console.log("");
|
|
51
49
|
if (quickDiagnosis?.lines.length) {
|
|
52
50
|
console.log(yellow("Quick diagnosis"));
|
|
@@ -55,20 +53,13 @@ class SentinelReporter {
|
|
|
55
53
|
}
|
|
56
54
|
console.log("");
|
|
57
55
|
}
|
|
58
|
-
if (runDiff) {
|
|
59
|
-
console.log(yellow("Run-to-run diff"));
|
|
60
|
-
console.log(` ${dim(`New failures: ${runDiff.newFailures}`)}`);
|
|
61
|
-
console.log(` ${dim(`Fixed since last run: ${runDiff.fixedTests}`)}`);
|
|
62
|
-
console.log(` ${dim(`Still failing: ${runDiff.stillFailing}`)}`);
|
|
63
|
-
console.log("");
|
|
64
|
-
}
|
|
65
56
|
if (hasWorkspaceToken) {
|
|
66
57
|
console.log("");
|
|
67
58
|
console.log(green("✔ Artifacts collected"));
|
|
68
|
-
console.log("");
|
|
69
|
-
console.log("Uploading hosted debugging report to Sentinel...");
|
|
70
|
-
console.log("");
|
|
71
59
|
}
|
|
60
|
+
console.log("");
|
|
61
|
+
console.log("Uploading hosted debugging report to Sentinel...");
|
|
62
|
+
console.log("");
|
|
72
63
|
const upload = await (0, node_1.runSentinelUpload)({
|
|
73
64
|
playwrightJsonPath: this.options.playwrightJsonPath,
|
|
74
65
|
playwrightReportDir: this.options.playwrightReportDir,
|