monocart-reporter 2.9.20 → 2.9.22
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/generate-data.js +1 -1
- package/lib/generate-report.js +6 -1
- package/lib/index.js +4 -4
- package/lib/packages/monocart-reporter-assets.js +2 -2
- package/lib/packages/monocart-reporter-vendor.js +22 -22
- package/lib/platform/share.js +1 -1
- package/lib/utils/pie.js +1 -1
- package/lib/visitor.js +8 -1
- package/package.json +89 -89
package/lib/platform/share.js
CHANGED
package/lib/utils/pie.js
CHANGED
|
@@ -120,7 +120,7 @@ const generatePieChart = (pieDataList) => {
|
|
|
120
120
|
// legends
|
|
121
121
|
const legendWidth = 200;
|
|
122
122
|
const legendHeight = Math.floor((o.height - margin * 3) / (list.length + 1));
|
|
123
|
-
const legends = [`<g font-family="Helvetica, Arial, sans-serif" transform="translate(${pieWidth + margin} ${margin * 2})">`];
|
|
123
|
+
const legends = [`<g font-size="14px" font-family="Helvetica, Arial, sans-serif" transform="translate(${pieWidth + margin} ${margin * 2})">`];
|
|
124
124
|
|
|
125
125
|
const legendList = list.concat([{
|
|
126
126
|
id: 'tests',
|
package/lib/visitor.js
CHANGED
|
@@ -415,10 +415,17 @@ class Visitor {
|
|
|
415
415
|
type: 'step',
|
|
416
416
|
stepType: testStep.category,
|
|
417
417
|
|
|
418
|
+
startTime: testStep.startTime,
|
|
419
|
+
|
|
420
|
+
// Added in: v1.51
|
|
421
|
+
annotations: testStep.annotations,
|
|
422
|
+
|
|
418
423
|
duration: testStep.duration,
|
|
419
424
|
location: this.locationHandler(testStep.location)
|
|
420
425
|
};
|
|
426
|
+
|
|
421
427
|
this.stepErrorsHandler(step, testStep, caseItem);
|
|
428
|
+
|
|
422
429
|
if (Util.isList(testStep.steps)) {
|
|
423
430
|
// console.log(testStep.title);
|
|
424
431
|
caseItem.stepSubs = true;
|
|
@@ -724,7 +731,7 @@ class Visitor {
|
|
|
724
731
|
return;
|
|
725
732
|
}
|
|
726
733
|
|
|
727
|
-
const excludes = ['_prompt-', '_error-context-'];
|
|
734
|
+
const excludes = ['_prompt-', '_error-context-', 'error-context'];
|
|
728
735
|
if (item.name) {
|
|
729
736
|
const prefix = excludes.find((it) => item.name.startsWith(it));
|
|
730
737
|
if (prefix) {
|
package/package.json
CHANGED
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "monocart-reporter",
|
|
3
|
-
"version": "2.9.
|
|
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
|
-
"main": "lib/index.js",
|
|
6
|
-
"bin": {
|
|
7
|
-
"monocart": "lib/cli.js"
|
|
8
|
-
},
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"types": "./lib/index.d.ts",
|
|
12
|
-
"import": "./lib/index.mjs",
|
|
13
|
-
"require": "./lib/index.js",
|
|
14
|
-
"default": "./lib/index.js"
|
|
15
|
-
},
|
|
16
|
-
"./cli": "./lib/cli.js",
|
|
17
|
-
"./package.json": "./package.json"
|
|
18
|
-
},
|
|
19
|
-
"types": "./lib/index.d.ts",
|
|
20
|
-
"scripts": {
|
|
21
|
-
"link": "node ./scripts/link.js",
|
|
22
|
-
"test": "npm run link && npx playwright test -c tests",
|
|
23
|
-
"test-example": "npm run link && npx playwright test tests/example -c tests",
|
|
24
|
-
"test-data": "npm run link && npx playwright test tests/data -c tests",
|
|
25
|
-
"test-page": "npm run link && npx playwright test tests/home-page -c tests",
|
|
26
|
-
"test-coverage": "npm run link && npx playwright test tests/report-coverage -c tests",
|
|
27
|
-
"test-network": "npm run link && npx playwright test tests/report-network -c tests",
|
|
28
|
-
"test-state": "npm run link && npx playwright test tests/state -c tests",
|
|
29
|
-
"build": "sf lint && sf b -p",
|
|
30
|
-
"dev": "sf d app -w .temp/monocart/index.json",
|
|
31
|
-
"patch": "npm run build && sf publish patch -r",
|
|
32
|
-
"mock-download": "node ./scripts/mock-download.js",
|
|
33
|
-
"mock-serve": "node ./scripts/mock-serve.js"
|
|
34
|
-
},
|
|
35
|
-
"workspaces": [],
|
|
36
|
-
"files": [
|
|
37
|
-
"lib"
|
|
38
|
-
],
|
|
39
|
-
"license": "MIT",
|
|
40
|
-
"repository": {
|
|
41
|
-
"type": "git",
|
|
42
|
-
"url": "git+https://github.com/cenfun/monocart-reporter.git"
|
|
43
|
-
},
|
|
44
|
-
"dependencies": {
|
|
45
|
-
"console-grid": "^2.2.3",
|
|
46
|
-
"eight-colors": "^1.3.1",
|
|
47
|
-
"koa": "^3.0.
|
|
48
|
-
"koa-static-resolver": "^1.0.6",
|
|
49
|
-
"lz-utils": "^2.1.0",
|
|
50
|
-
"monocart-coverage-reports": "^2.12.
|
|
51
|
-
"monocart-locator": "^1.0.2",
|
|
52
|
-
"nodemailer": "^7.0.
|
|
53
|
-
},
|
|
54
|
-
"devDependencies": {
|
|
55
|
-
"@babel/code-frame": "^7.27.1",
|
|
56
|
-
"@playwright/test": "^1.
|
|
57
|
-
"ansi-to-html": "^0.7.2",
|
|
58
|
-
"async-tick": "^1.0.0",
|
|
59
|
-
"autolinker": "^4.1.5",
|
|
60
|
-
"axios": "^1.
|
|
61
|
-
"commander": "^14.0.0",
|
|
62
|
-
"dotenv": "^
|
|
63
|
-
"eslint": "^9.
|
|
64
|
-
"eslint-config-plus": "^2.0.
|
|
65
|
-
"eslint-plugin-html": "^8.1.3",
|
|
66
|
-
"eslint-plugin-vue": "^10.
|
|
67
|
-
"file-saver": "^2.0.5",
|
|
68
|
-
"find-up": "^7.0.0",
|
|
69
|
-
"github-markdown-css": "^5.8.1",
|
|
70
|
-
"glob": "^11.0.
|
|
71
|
-
"marked": "^
|
|
72
|
-
"mermaid": "^11.
|
|
73
|
-
"mitt": "^3.0.1",
|
|
74
|
-
"monocart-code-viewer": "^1.1.5",
|
|
75
|
-
"monocart-formatter": "^3.0.1",
|
|
76
|
-
"nice-ticks": "^1.0.2",
|
|
77
|
-
"node-stream-zip": "^1.15.0",
|
|
78
|
-
"open": "8.4.2",
|
|
79
|
-
"sanitize-filename": "^1.6.3",
|
|
80
|
-
"stack-utils": "^2.0.6",
|
|
81
|
-
"stylelint": "^16.
|
|
82
|
-
"stylelint-config-plus": "^1.1.
|
|
83
|
-
"supports-color": "^10.
|
|
84
|
-
"turbogrid": "^3.2.
|
|
85
|
-
"vine-ui": "^3.1.
|
|
86
|
-
"ws": "^8.18.
|
|
87
|
-
"yazl": "^3.3.1"
|
|
88
|
-
}
|
|
89
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "monocart-reporter",
|
|
3
|
+
"version": "2.9.22",
|
|
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
|
+
"main": "lib/index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"monocart": "lib/cli.js"
|
|
8
|
+
},
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./lib/index.d.ts",
|
|
12
|
+
"import": "./lib/index.mjs",
|
|
13
|
+
"require": "./lib/index.js",
|
|
14
|
+
"default": "./lib/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./cli": "./lib/cli.js",
|
|
17
|
+
"./package.json": "./package.json"
|
|
18
|
+
},
|
|
19
|
+
"types": "./lib/index.d.ts",
|
|
20
|
+
"scripts": {
|
|
21
|
+
"link": "node ./scripts/link.js",
|
|
22
|
+
"test": "npm run link && npx playwright test -c tests",
|
|
23
|
+
"test-example": "npm run link && npx playwright test tests/example -c tests",
|
|
24
|
+
"test-data": "npm run link && npx playwright test tests/data -c tests",
|
|
25
|
+
"test-page": "npm run link && npx playwright test tests/home-page -c tests",
|
|
26
|
+
"test-coverage": "npm run link && npx playwright test tests/report-coverage -c tests",
|
|
27
|
+
"test-network": "npm run link && npx playwright test tests/report-network -c tests",
|
|
28
|
+
"test-state": "npm run link && npx playwright test tests/state -c tests",
|
|
29
|
+
"build": "sf lint && sf b -p",
|
|
30
|
+
"dev": "sf d app -w .temp/monocart/index.json",
|
|
31
|
+
"patch": "npm run build && sf publish patch -r",
|
|
32
|
+
"mock-download": "node ./scripts/mock-download.js",
|
|
33
|
+
"mock-serve": "node ./scripts/mock-serve.js"
|
|
34
|
+
},
|
|
35
|
+
"workspaces": [],
|
|
36
|
+
"files": [
|
|
37
|
+
"lib"
|
|
38
|
+
],
|
|
39
|
+
"license": "MIT",
|
|
40
|
+
"repository": {
|
|
41
|
+
"type": "git",
|
|
42
|
+
"url": "git+https://github.com/cenfun/monocart-reporter.git"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"console-grid": "^2.2.3",
|
|
46
|
+
"eight-colors": "^1.3.1",
|
|
47
|
+
"koa": "^3.0.1",
|
|
48
|
+
"koa-static-resolver": "^1.0.6",
|
|
49
|
+
"lz-utils": "^2.1.0",
|
|
50
|
+
"monocart-coverage-reports": "^2.12.7",
|
|
51
|
+
"monocart-locator": "^1.0.2",
|
|
52
|
+
"nodemailer": "^7.0.6"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@babel/code-frame": "^7.27.1",
|
|
56
|
+
"@playwright/test": "^1.55.0",
|
|
57
|
+
"ansi-to-html": "^0.7.2",
|
|
58
|
+
"async-tick": "^1.0.0",
|
|
59
|
+
"autolinker": "^4.1.5",
|
|
60
|
+
"axios": "^1.11.0",
|
|
61
|
+
"commander": "^14.0.0",
|
|
62
|
+
"dotenv": "^17.2.2",
|
|
63
|
+
"eslint": "^9.35.0",
|
|
64
|
+
"eslint-config-plus": "^2.0.3",
|
|
65
|
+
"eslint-plugin-html": "^8.1.3",
|
|
66
|
+
"eslint-plugin-vue": "^10.4.0",
|
|
67
|
+
"file-saver": "^2.0.5",
|
|
68
|
+
"find-up": "^7.0.0",
|
|
69
|
+
"github-markdown-css": "^5.8.1",
|
|
70
|
+
"glob": "^11.0.3",
|
|
71
|
+
"marked": "^16.2.1",
|
|
72
|
+
"mermaid": "^11.11.0",
|
|
73
|
+
"mitt": "^3.0.1",
|
|
74
|
+
"monocart-code-viewer": "^1.1.5",
|
|
75
|
+
"monocart-formatter": "^3.0.1",
|
|
76
|
+
"nice-ticks": "^1.0.2",
|
|
77
|
+
"node-stream-zip": "^1.15.0",
|
|
78
|
+
"open": "8.4.2",
|
|
79
|
+
"sanitize-filename": "^1.6.3",
|
|
80
|
+
"stack-utils": "^2.0.6",
|
|
81
|
+
"stylelint": "^16.24.0",
|
|
82
|
+
"stylelint-config-plus": "^1.1.4",
|
|
83
|
+
"supports-color": "^10.2.2",
|
|
84
|
+
"turbogrid": "^3.2.1",
|
|
85
|
+
"vine-ui": "^3.1.18",
|
|
86
|
+
"ws": "^8.18.3",
|
|
87
|
+
"yazl": "^3.3.1"
|
|
88
|
+
}
|
|
89
|
+
}
|