@arghajit/playwright-pulse-report 0.3.1 → 0.3.3
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/LICENSE +21 -0
- package/README.md +3 -3
- package/dist/reporter/playwright-pulse-reporter.js +5 -2
- package/package.json +8 -5
- package/scripts/generate-email-report.mjs +1 -1
- package/scripts/generate-report.mjs +1540 -385
- package/scripts/generate-static-report.mjs +3701 -844
- package/scripts/generate-trend.mjs +0 -0
- package/scripts/merge-pulse-report.js +152 -37
- package/scripts/sendReport.mjs +150 -65
- package/dist/reporter/tsconfig.reporter.tsbuildinfo +0 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Arghajit Singha
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
|
|
9
9
|
_The ultimate Playwright reporter — Interactive dashboard with historical trend analytics, CI/CD-ready standalone HTML reports, and sharding support for scalable test execution._
|
|
10
10
|
|
|
11
|
-
## [Live Demo](https://
|
|
11
|
+
## [Live Demo](https://arghajit47.github.io/playwright-pulse/demo.html)
|
|
12
12
|
|
|
13
13
|
## 
|
|
14
14
|
|
|
15
|
-
## **Documentation**: [Pulse Report](https://playwright-pulse
|
|
15
|
+
## **Documentation**: [Pulse Report](https://arghajit47.github.io/playwright-pulse/)
|
|
16
16
|
|
|
17
17
|
## Available Scripts
|
|
18
18
|
|
|
@@ -396,7 +396,7 @@ npm run pulse-dashboard
|
|
|
396
396
|
|
|
397
397
|
*(Run from project root containing `pulse-report/` directory)*
|
|
398
398
|
|
|
399
|
-
**NPM Package**: [
|
|
399
|
+
**NPM Package**: [pulse-dashboard](https://www.npmjs.com/package/pulse-dashboard)
|
|
400
400
|
|
|
401
401
|
**Tech Stack**: Next.js, TypeScript, Tailwind CSS, Playwright
|
|
402
402
|
|
|
@@ -32,12 +32,15 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
32
32
|
return result;
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
35
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
39
|
exports.PlaywrightPulseReporter = void 0;
|
|
37
40
|
const fs = __importStar(require("fs/promises"));
|
|
38
41
|
const path = __importStar(require("path"));
|
|
39
42
|
const crypto_1 = require("crypto");
|
|
40
|
-
const ua_parser_js_1 = require("ua-parser-js");
|
|
43
|
+
const ua_parser_js_1 = __importDefault(require("ua-parser-js"));
|
|
41
44
|
const os = __importStar(require("os"));
|
|
42
45
|
const convertStatus = (status, testCase) => {
|
|
43
46
|
if ((testCase === null || testCase === void 0 ? void 0 : testCase.expectedStatus) === "failed") {
|
|
@@ -119,7 +122,7 @@ class PlaywrightPulseReporter {
|
|
|
119
122
|
const projectConfig = project === null || project === void 0 ? void 0 : project.use;
|
|
120
123
|
const userAgent = projectConfig === null || projectConfig === void 0 ? void 0 : projectConfig.userAgent;
|
|
121
124
|
const configuredBrowserType = (_b = projectConfig === null || projectConfig === void 0 ? void 0 : projectConfig.browserName) === null || _b === void 0 ? void 0 : _b.toLowerCase();
|
|
122
|
-
const parser = new ua_parser_js_1.
|
|
125
|
+
const parser = new ua_parser_js_1.default(userAgent);
|
|
123
126
|
const result = parser.getResult();
|
|
124
127
|
let browserName = result.browser.name;
|
|
125
128
|
const browserVersion = result.browser.version
|
package/package.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arghajit/playwright-pulse-report",
|
|
3
3
|
"author": "Arghajit Singha",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.3",
|
|
5
5
|
"description": "A Playwright reporter and dashboard for visualizing test results.",
|
|
6
|
-
"homepage": "https://playwright-pulse
|
|
6
|
+
"homepage": "https://arghajit47.github.io/playwright-pulse/",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/Arghajit47/playwright-pulse"
|
|
10
|
+
},
|
|
7
11
|
"keywords": [
|
|
8
12
|
"playwright",
|
|
9
13
|
"reporter",
|
|
@@ -67,8 +71,7 @@
|
|
|
67
71
|
"node-fetch": "^3.3.2",
|
|
68
72
|
"nodemailer": "^7.0.3",
|
|
69
73
|
"patch-package": "^8.0.0",
|
|
70
|
-
"
|
|
71
|
-
"ua-parser-js": "^2.0.3",
|
|
74
|
+
"ua-parser-js": "^1.0.41",
|
|
72
75
|
"zod": "^3.24.2"
|
|
73
76
|
},
|
|
74
77
|
"devDependencies": {
|
|
@@ -86,4 +89,4 @@
|
|
|
86
89
|
"overrides": {
|
|
87
90
|
"glob": "^13.0.0"
|
|
88
91
|
}
|
|
89
|
-
}
|
|
92
|
+
}
|
|
@@ -608,7 +608,7 @@ function generateMinifiedHTML(reportData) {
|
|
|
608
608
|
<footer class="report-footer">
|
|
609
609
|
<div style="display: inline-flex; align-items: center; gap: 0.5rem;">
|
|
610
610
|
<span>Created for</span>
|
|
611
|
-
<a href="https://playwright-pulse
|
|
611
|
+
<a href="https://arghajit47.github.io/playwright-pulse/" target="_blank" rel="noopener noreferrer">
|
|
612
612
|
Pulse Email Report
|
|
613
613
|
</a>
|
|
614
614
|
</div>
|