monocart-reporter 2.8.0 → 2.8.2
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/lib/cli.js +37 -1
- package/lib/hooks.js +37 -0
- package/lib/merge-data.js +2 -2
- package/lib/packages/monocart-reporter-assets.js +2 -2
- package/lib/packages/monocart-reporter-vendor.js +11 -11
- package/lib/utils/util.js +17 -1
- package/lib/visitor.js +2 -0
- package/package.json +11 -10
package/lib/utils/util.js
CHANGED
|
@@ -274,7 +274,8 @@ const Util = {
|
|
|
274
274
|
if (fs.existsSync(p)) {
|
|
275
275
|
fs.rmSync(p, {
|
|
276
276
|
recursive: true,
|
|
277
|
-
force: true
|
|
277
|
+
force: true,
|
|
278
|
+
maxRetries: 10
|
|
278
279
|
});
|
|
279
280
|
}
|
|
280
281
|
},
|
|
@@ -318,6 +319,21 @@ const Util = {
|
|
|
318
319
|
return option;
|
|
319
320
|
},
|
|
320
321
|
|
|
322
|
+
cmpVersion: (v1, v2) => {
|
|
323
|
+
const [strMajor1, strMinor1, strPatch1] = `${v1}`.split('.');
|
|
324
|
+
const [strMajor2, strMinor2, strPatch2] = `${v2}`.split('.');
|
|
325
|
+
const strList = [strMajor1, strMinor1, strPatch1, strMajor2, strMinor2, strPatch2];
|
|
326
|
+
const list = strList.map((str) => Util.toNum(parseInt(str)));
|
|
327
|
+
const [major1, minor1, patch1, major2, minor2, patch2] = list;
|
|
328
|
+
if (major1 === major2) {
|
|
329
|
+
if (minor1 === minor2) {
|
|
330
|
+
return patch1 - patch2;
|
|
331
|
+
}
|
|
332
|
+
return minor1 - minor2;
|
|
333
|
+
}
|
|
334
|
+
return major1 - major2;
|
|
335
|
+
},
|
|
336
|
+
|
|
321
337
|
// ==========================================================================================
|
|
322
338
|
|
|
323
339
|
loggingLevels: {
|
package/lib/visitor.js
CHANGED
|
@@ -527,6 +527,8 @@ class Visitor {
|
|
|
527
527
|
}
|
|
528
528
|
|
|
529
529
|
// before path change
|
|
530
|
+
// Attachments with a text/html content type can now be opened in a new tab in the HTML report.
|
|
531
|
+
// This is useful for including third-party reports or other HTML content in the Playwright test report and distributing it to your team.
|
|
530
532
|
this.reportHandler(item, 'audit', title);
|
|
531
533
|
this.reportHandler(item, 'coverage', title);
|
|
532
534
|
this.reportHandler(item, 'network', title);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "monocart-reporter",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.2",
|
|
4
4
|
"description": "A playwright test reporter. Shows suites/cases/steps with tree style, markdown annotations, custom columns/formatters/data collection visitors, console logs, style tags, send email.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -42,33 +42,34 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"console-grid": "^2.2.2",
|
|
45
|
-
"eight-colors": "^1.3.
|
|
45
|
+
"eight-colors": "^1.3.1",
|
|
46
46
|
"koa": "^2.15.3",
|
|
47
47
|
"koa-static-resolver": "^1.0.6",
|
|
48
48
|
"lz-utils": "^2.1.0",
|
|
49
|
-
"monocart-coverage-reports": "^2.10.
|
|
49
|
+
"monocart-coverage-reports": "^2.10.9",
|
|
50
50
|
"monocart-locator": "^1.0.2",
|
|
51
|
-
"nodemailer": "^6.9.
|
|
51
|
+
"nodemailer": "^6.9.15"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@babel/code-frame": "^7.24.7",
|
|
55
|
-
"@playwright/test": "^1.
|
|
55
|
+
"@playwright/test": "^1.47.2",
|
|
56
|
+
"amaro": "^0.1.8",
|
|
56
57
|
"ansi-to-html": "^0.7.2",
|
|
57
58
|
"async-tick": "^1.0.0",
|
|
58
59
|
"autolinker": "^4.0.0",
|
|
59
60
|
"axios": "^1.7.7",
|
|
60
61
|
"commander": "^12.1.0",
|
|
61
62
|
"dotenv": "^16.4.5",
|
|
62
|
-
"eslint": "^9.
|
|
63
|
+
"eslint": "^9.11.0",
|
|
63
64
|
"eslint-config-plus": "^2.0.2",
|
|
64
65
|
"eslint-plugin-html": "^8.1.1",
|
|
65
|
-
"eslint-plugin-vue": "^9.
|
|
66
|
+
"eslint-plugin-vue": "^9.28.0",
|
|
66
67
|
"file-saver": "^2.0.5",
|
|
67
68
|
"find-up": "^7.0.0",
|
|
68
69
|
"github-markdown-css": "^5.6.1",
|
|
69
70
|
"glob": "^11.0.0",
|
|
70
|
-
"marked": "^14.1.
|
|
71
|
-
"mermaid": "^11.
|
|
71
|
+
"marked": "^14.1.2",
|
|
72
|
+
"mermaid": "^11.2.1",
|
|
72
73
|
"mitt": "^3.0.1",
|
|
73
74
|
"monocart-code-viewer": "^1.1.4",
|
|
74
75
|
"monocart-formatter": "^3.0.0",
|
|
@@ -77,7 +78,7 @@
|
|
|
77
78
|
"sanitize-filename": "^1.6.3",
|
|
78
79
|
"stack-utils": "^2.0.6",
|
|
79
80
|
"stylelint": "^16.9.0",
|
|
80
|
-
"stylelint-config-plus": "^1.1.
|
|
81
|
+
"stylelint-config-plus": "^1.1.3",
|
|
81
82
|
"supports-color": "^9.4.0",
|
|
82
83
|
"turbogrid": "^3.2.0",
|
|
83
84
|
"vine-ui": "^3.1.16",
|