@storywright/cli 0.1.0
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/bin/storywright.mjs +2 -0
- package/dist/chunk-FST75QN5.js +136 -0
- package/dist/chunk-FST75QN5.js.map +1 -0
- package/dist/chunk-U4KT4Y42.js +748 -0
- package/dist/chunk-U4KT4Y42.js.map +1 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +363 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.d.ts +134 -0
- package/dist/index.js +62 -0
- package/dist/index.js.map +1 -0
- package/dist/playwright/reporter.d.ts +18 -0
- package/dist/playwright/reporter.js +9 -0
- package/dist/playwright/reporter.js.map +1 -0
- package/dist/types-DqV0YrhZ.d.ts +45 -0
- package/package.json +62 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Storywright Contributors
|
|
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.
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
// src/playwright/reporter.ts
|
|
2
|
+
import fs from "fs";
|
|
3
|
+
import { createRequire } from "module";
|
|
4
|
+
import path from "path";
|
|
5
|
+
var StorywrightReporter = class {
|
|
6
|
+
outputDir;
|
|
7
|
+
results = [];
|
|
8
|
+
startTime = 0;
|
|
9
|
+
constructor(options = {}) {
|
|
10
|
+
this.outputDir = options.outputDir || path.resolve(".storywright", "report");
|
|
11
|
+
}
|
|
12
|
+
onBegin(_config, _suite) {
|
|
13
|
+
this.startTime = Date.now();
|
|
14
|
+
}
|
|
15
|
+
onTestEnd(test, result) {
|
|
16
|
+
const status = result.status === "passed" ? "passed" : result.status === "skipped" ? "skipped" : "failed";
|
|
17
|
+
this.results.push({
|
|
18
|
+
title: test.title,
|
|
19
|
+
project: test.parent?.project()?.name ?? "unknown",
|
|
20
|
+
status,
|
|
21
|
+
duration: result.duration,
|
|
22
|
+
attachments: result.attachments.map((a) => ({
|
|
23
|
+
name: a.name,
|
|
24
|
+
path: a.path,
|
|
25
|
+
contentType: a.contentType
|
|
26
|
+
}))
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
async onEnd(_result) {
|
|
30
|
+
const duration = Date.now() - this.startTime;
|
|
31
|
+
const passed = this.results.filter((r) => r.status === "passed").length;
|
|
32
|
+
const failed = this.results.filter((r) => r.status === "failed").length;
|
|
33
|
+
const skipped = this.results.filter((r) => r.status === "skipped").length;
|
|
34
|
+
const browsers = [...new Set(this.results.map((r) => r.project))];
|
|
35
|
+
const failures = [];
|
|
36
|
+
const assetsDir = path.join(this.outputDir, "assets");
|
|
37
|
+
for (const dir of ["expected", "actual", "diff"]) {
|
|
38
|
+
fs.mkdirSync(path.join(assetsDir, dir), { recursive: true });
|
|
39
|
+
}
|
|
40
|
+
for (const testResult of this.results) {
|
|
41
|
+
if (testResult.status !== "failed") continue;
|
|
42
|
+
const titleParts = testResult.title.split(": ");
|
|
43
|
+
const storyTitle = titleParts[0] ?? testResult.title;
|
|
44
|
+
const variant = titleParts.slice(1).join(": ") || "default";
|
|
45
|
+
const sanitizedName = testResult.title.replace(/[^a-zA-Z0-9-_]/g, "-").toLowerCase();
|
|
46
|
+
const imageAttachments = testResult.attachments.filter(
|
|
47
|
+
(a) => a.path && a.contentType.startsWith("image/")
|
|
48
|
+
);
|
|
49
|
+
const hasDiff = imageAttachments.some((a) => a.name.includes("diff"));
|
|
50
|
+
const failure = {
|
|
51
|
+
type: hasDiff ? "diff" : "new",
|
|
52
|
+
story: storyTitle,
|
|
53
|
+
variant,
|
|
54
|
+
browser: testResult.project,
|
|
55
|
+
diffRatio: 0,
|
|
56
|
+
expected: "",
|
|
57
|
+
actual: "",
|
|
58
|
+
diff: ""
|
|
59
|
+
};
|
|
60
|
+
for (const attachment of testResult.attachments) {
|
|
61
|
+
if (!attachment.path) continue;
|
|
62
|
+
const ext = path.extname(attachment.path);
|
|
63
|
+
const destName = `${sanitizedName}-${testResult.project}${ext}`;
|
|
64
|
+
if (attachment.name.includes("expected")) {
|
|
65
|
+
const dest = path.join(assetsDir, "expected", destName);
|
|
66
|
+
copyFileIfExists(attachment.path, dest);
|
|
67
|
+
failure.expected = `assets/expected/${destName}`;
|
|
68
|
+
} else if (attachment.name.includes("actual")) {
|
|
69
|
+
const dest = path.join(assetsDir, "actual", destName);
|
|
70
|
+
copyFileIfExists(attachment.path, dest);
|
|
71
|
+
failure.actual = `assets/actual/${destName}`;
|
|
72
|
+
} else if (attachment.name.includes("diff")) {
|
|
73
|
+
const dest = path.join(assetsDir, "diff", destName);
|
|
74
|
+
copyFileIfExists(attachment.path, dest);
|
|
75
|
+
failure.diff = `assets/diff/${destName}`;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
failures.push(failure);
|
|
79
|
+
}
|
|
80
|
+
const summary = {
|
|
81
|
+
total: this.results.length,
|
|
82
|
+
passed,
|
|
83
|
+
failed,
|
|
84
|
+
skipped,
|
|
85
|
+
duration,
|
|
86
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
87
|
+
browsers,
|
|
88
|
+
failures
|
|
89
|
+
};
|
|
90
|
+
fs.mkdirSync(this.outputDir, { recursive: true });
|
|
91
|
+
fs.writeFileSync(path.join(this.outputDir, "summary.json"), JSON.stringify(summary, null, 2));
|
|
92
|
+
const html = generateHtmlReport(summary);
|
|
93
|
+
fs.writeFileSync(path.join(this.outputDir, "index.html"), html);
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
function copyFileIfExists(src, dest) {
|
|
97
|
+
try {
|
|
98
|
+
fs.copyFileSync(src, dest);
|
|
99
|
+
} catch {
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
function generateHtmlReport(summary) {
|
|
103
|
+
const require2 = createRequire(import.meta.url);
|
|
104
|
+
const bundlePath = require2.resolve("@storywright/report");
|
|
105
|
+
const bundleJs = fs.readFileSync(bundlePath, "utf-8");
|
|
106
|
+
const bundleDir = path.dirname(bundlePath);
|
|
107
|
+
const assetsDir = path.join(bundleDir, "assets");
|
|
108
|
+
let cssContent = "";
|
|
109
|
+
if (fs.existsSync(assetsDir)) {
|
|
110
|
+
const cssFiles = fs.readdirSync(assetsDir).filter((f) => f.endsWith(".css"));
|
|
111
|
+
for (const cssFile of cssFiles) {
|
|
112
|
+
cssContent += fs.readFileSync(path.join(assetsDir, cssFile), "utf-8");
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
return `<!DOCTYPE html>
|
|
116
|
+
<html lang="en">
|
|
117
|
+
<head>
|
|
118
|
+
<meta charset="UTF-8">
|
|
119
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
120
|
+
<title>Storywright Report</title>
|
|
121
|
+
${cssContent ? `<style>${cssContent}</style>` : ""}
|
|
122
|
+
</head>
|
|
123
|
+
<body>
|
|
124
|
+
<div id="app"></div>
|
|
125
|
+
<script>window.__STORYWRIGHT_SUMMARY__ = ${JSON.stringify(summary).replace(/</g, "\\u003c")};</script>
|
|
126
|
+
<script>${bundleJs}</script>
|
|
127
|
+
</body>
|
|
128
|
+
</html>`;
|
|
129
|
+
}
|
|
130
|
+
var reporter_default = StorywrightReporter;
|
|
131
|
+
|
|
132
|
+
export {
|
|
133
|
+
generateHtmlReport,
|
|
134
|
+
reporter_default
|
|
135
|
+
};
|
|
136
|
+
//# sourceMappingURL=chunk-FST75QN5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/playwright/reporter.ts"],"sourcesContent":["import fs from 'node:fs';\nimport { createRequire } from 'node:module';\nimport path from 'node:path';\nimport type {\n\tFullConfig,\n\tFullResult,\n\tTestResult as PwTestResult,\n\tReporter,\n\tSuite,\n\tTestCase,\n} from '@playwright/test/reporter';\nimport type { FailureEntry, TestSummary } from '../core/types.js';\n\ninterface StorywrightReporterOptions {\n\toutputDir?: string;\n}\n\nclass StorywrightReporter implements Reporter {\n\tprivate outputDir: string;\n\tprivate results: {\n\t\ttitle: string;\n\t\tproject: string;\n\t\tstatus: 'passed' | 'failed' | 'skipped';\n\t\tduration: number;\n\t\tattachments: { name: string; path?: string; contentType: string }[];\n\t}[] = [];\n\tprivate startTime = 0;\n\n\tconstructor(options: StorywrightReporterOptions = {}) {\n\t\tthis.outputDir = options.outputDir || path.resolve('.storywright', 'report');\n\t}\n\n\tonBegin(_config: FullConfig, _suite: Suite): void {\n\t\tthis.startTime = Date.now();\n\t}\n\n\tonTestEnd(test: TestCase, result: PwTestResult): void {\n\t\tconst status =\n\t\t\tresult.status === 'passed' ? 'passed' : result.status === 'skipped' ? 'skipped' : 'failed';\n\n\t\tthis.results.push({\n\t\t\ttitle: test.title,\n\t\t\tproject: test.parent?.project()?.name ?? 'unknown',\n\t\t\tstatus,\n\t\t\tduration: result.duration,\n\t\t\tattachments: result.attachments.map((a) => ({\n\t\t\t\tname: a.name,\n\t\t\t\tpath: a.path,\n\t\t\t\tcontentType: a.contentType,\n\t\t\t})),\n\t\t});\n\t}\n\n\tasync onEnd(_result: FullResult): Promise<void> {\n\t\tconst duration = Date.now() - this.startTime;\n\t\tconst passed = this.results.filter((r) => r.status === 'passed').length;\n\t\tconst failed = this.results.filter((r) => r.status === 'failed').length;\n\t\tconst skipped = this.results.filter((r) => r.status === 'skipped').length;\n\n\t\tconst browsers = [...new Set(this.results.map((r) => r.project))];\n\t\tconst failures: FailureEntry[] = [];\n\n\t\t// Collect failure images\n\t\tconst assetsDir = path.join(this.outputDir, 'assets');\n\t\tfor (const dir of ['expected', 'actual', 'diff']) {\n\t\t\tfs.mkdirSync(path.join(assetsDir, dir), { recursive: true });\n\t\t}\n\n\t\tfor (const testResult of this.results) {\n\t\t\tif (testResult.status !== 'failed') continue;\n\n\t\t\tconst titleParts = testResult.title.split(': ');\n\t\t\tconst storyTitle = titleParts[0] ?? testResult.title;\n\t\t\tconst variant = titleParts.slice(1).join(': ') || 'default';\n\t\t\tconst sanitizedName = testResult.title.replace(/[^a-zA-Z0-9-_]/g, '-').toLowerCase();\n\n\t\t\tconst imageAttachments = testResult.attachments.filter(\n\t\t\t\t(a) => a.path && a.contentType.startsWith('image/'),\n\t\t\t);\n\t\t\tconst hasDiff = imageAttachments.some((a) => a.name.includes('diff'));\n\n\t\t\tconst failure: FailureEntry = {\n\t\t\t\ttype: hasDiff ? 'diff' : 'new',\n\t\t\t\tstory: storyTitle,\n\t\t\t\tvariant,\n\t\t\t\tbrowser: testResult.project,\n\t\t\t\tdiffRatio: 0,\n\t\t\t\texpected: '',\n\t\t\t\tactual: '',\n\t\t\t\tdiff: '',\n\t\t\t};\n\n\t\t\tfor (const attachment of testResult.attachments) {\n\t\t\t\tif (!attachment.path) continue;\n\t\t\t\tconst ext = path.extname(attachment.path);\n\t\t\t\tconst destName = `${sanitizedName}-${testResult.project}${ext}`;\n\n\t\t\t\tif (attachment.name.includes('expected')) {\n\t\t\t\t\tconst dest = path.join(assetsDir, 'expected', destName);\n\t\t\t\t\tcopyFileIfExists(attachment.path, dest);\n\t\t\t\t\tfailure.expected = `assets/expected/${destName}`;\n\t\t\t\t} else if (attachment.name.includes('actual')) {\n\t\t\t\t\tconst dest = path.join(assetsDir, 'actual', destName);\n\t\t\t\t\tcopyFileIfExists(attachment.path, dest);\n\t\t\t\t\tfailure.actual = `assets/actual/${destName}`;\n\t\t\t\t} else if (attachment.name.includes('diff')) {\n\t\t\t\t\tconst dest = path.join(assetsDir, 'diff', destName);\n\t\t\t\t\tcopyFileIfExists(attachment.path, dest);\n\t\t\t\t\tfailure.diff = `assets/diff/${destName}`;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfailures.push(failure);\n\t\t}\n\n\t\tconst summary: TestSummary = {\n\t\t\ttotal: this.results.length,\n\t\t\tpassed,\n\t\t\tfailed,\n\t\t\tskipped,\n\t\t\tduration,\n\t\t\ttimestamp: new Date().toISOString(),\n\t\t\tbrowsers,\n\t\t\tfailures,\n\t\t};\n\n\t\tfs.mkdirSync(this.outputDir, { recursive: true });\n\t\tfs.writeFileSync(path.join(this.outputDir, 'summary.json'), JSON.stringify(summary, null, 2));\n\n\t\t// Generate HTML report\n\t\tconst html = generateHtmlReport(summary);\n\t\tfs.writeFileSync(path.join(this.outputDir, 'index.html'), html);\n\t}\n}\n\nfunction copyFileIfExists(src: string, dest: string): void {\n\ttry {\n\t\tfs.copyFileSync(src, dest);\n\t} catch {\n\t\t// source may not exist\n\t}\n}\n\nexport function generateHtmlReport(summary: TestSummary): string {\n\tconst require = createRequire(import.meta.url);\n\tconst bundlePath = require.resolve('@storywright/report');\n\tconst bundleJs = fs.readFileSync(bundlePath, 'utf-8');\n\n\t// Load CSS if it exists as a separate file\n\tconst bundleDir = path.dirname(bundlePath);\n\tconst assetsDir = path.join(bundleDir, 'assets');\n\tlet cssContent = '';\n\tif (fs.existsSync(assetsDir)) {\n\t\tconst cssFiles = fs.readdirSync(assetsDir).filter((f) => f.endsWith('.css'));\n\t\tfor (const cssFile of cssFiles) {\n\t\t\tcssContent += fs.readFileSync(path.join(assetsDir, cssFile), 'utf-8');\n\t\t}\n\t}\n\n\treturn `<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"UTF-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n<title>Storywright Report</title>\n${cssContent ? `<style>${cssContent}</style>` : ''}\n</head>\n<body>\n<div id=\"app\"></div>\n<script>window.__STORYWRIGHT_SUMMARY__ = ${JSON.stringify(summary).replace(/</g, '\\\\u003c')};</script>\n<script>${bundleJs}</script>\n</body>\n</html>`;\n}\n\nexport default StorywrightReporter;\n"],"mappings":";AAAA,OAAO,QAAQ;AACf,SAAS,qBAAqB;AAC9B,OAAO,UAAU;AAejB,IAAM,sBAAN,MAA8C;AAAA,EACrC;AAAA,EACA,UAMF,CAAC;AAAA,EACC,YAAY;AAAA,EAEpB,YAAY,UAAsC,CAAC,GAAG;AACrD,SAAK,YAAY,QAAQ,aAAa,KAAK,QAAQ,gBAAgB,QAAQ;AAAA,EAC5E;AAAA,EAEA,QAAQ,SAAqB,QAAqB;AACjD,SAAK,YAAY,KAAK,IAAI;AAAA,EAC3B;AAAA,EAEA,UAAU,MAAgB,QAA4B;AACrD,UAAM,SACL,OAAO,WAAW,WAAW,WAAW,OAAO,WAAW,YAAY,YAAY;AAEnF,SAAK,QAAQ,KAAK;AAAA,MACjB,OAAO,KAAK;AAAA,MACZ,SAAS,KAAK,QAAQ,QAAQ,GAAG,QAAQ;AAAA,MACzC;AAAA,MACA,UAAU,OAAO;AAAA,MACjB,aAAa,OAAO,YAAY,IAAI,CAAC,OAAO;AAAA,QAC3C,MAAM,EAAE;AAAA,QACR,MAAM,EAAE;AAAA,QACR,aAAa,EAAE;AAAA,MAChB,EAA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