@allurereport/plugin-classic 3.20.0 → 3.21.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/dist/generators.d.ts +1 -0
- package/dist/generators.js +5 -4
- package/dist/plugin.js +1 -0
- package/dist/static/report.tar +0 -0
- package/package.json +11 -8
package/dist/generators.d.ts
CHANGED
|
@@ -17,5 +17,6 @@ export declare const generateStaticFiles: (payload: ClassicOptions & {
|
|
|
17
17
|
reportDataFiles: ReportFile[];
|
|
18
18
|
reportUuid: string;
|
|
19
19
|
reportName: string;
|
|
20
|
+
overviewHref?: string;
|
|
20
21
|
}) => Promise<void>;
|
|
21
22
|
export declare const generateTreeByCategories: (writer: ClassicDataWriter, treeName: string, tests: ReportTestResult[]) => Promise<void>;
|
package/dist/generators.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { randomUUID } from "node:crypto";
|
|
2
2
|
import { defaultChartsConfig } from "@allurereport/charts-api";
|
|
3
|
-
import { compareBy, createBaseUrlScript, createFontLinkTag,
|
|
3
|
+
import { compareBy, createBaseUrlScript, createFontLinkTag, injectReportDataScript, reportDataScriptPlaceholder, stringifyForInlineScript, createScriptTag, createStylesLinkTag, incrementStatistic, nullsLast, ordinal, } from "@allurereport/core-api";
|
|
4
4
|
import { createTreeByCategories, createTreeByLabels, processTree, } from "@allurereport/plugin-api";
|
|
5
5
|
import { copyReportStaticAssets, getReportStaticAsset, readReportStaticAssets, } from "@allurereport/plugin-api/static-assets";
|
|
6
6
|
import { generateCharts, getPieChartValues } from "@allurereport/web-commons";
|
|
@@ -184,7 +184,7 @@ export const generateHistoryDataPoints = async (writer, store) => {
|
|
|
184
184
|
return result;
|
|
185
185
|
};
|
|
186
186
|
export const generateStaticFiles = async (payload) => {
|
|
187
|
-
const { reportName = "Allure Report", reportLanguage = "en", logo = "", theme = "auto", groupBy, reportFiles, reportDataFiles, reportUuid, allureVersion, } = payload;
|
|
187
|
+
const { reportName = "Allure Report", reportLanguage = "en", logo = "", theme = "auto", groupBy, reportFiles, reportDataFiles, reportUuid, allureVersion, overviewHref, } = payload;
|
|
188
188
|
const staticAssets = await readReportStaticAssets(reportStaticArchive);
|
|
189
189
|
const { manifest } = staticAssets;
|
|
190
190
|
const headTags = [];
|
|
@@ -225,12 +225,13 @@ export const generateStaticFiles = async (payload) => {
|
|
|
225
225
|
groupBy: groupBy?.length ? groupBy : ["parentSuite", "suite", "subSuite"],
|
|
226
226
|
allureVersion,
|
|
227
227
|
cacheKey: now.toString(),
|
|
228
|
+
overviewHref,
|
|
228
229
|
};
|
|
229
230
|
try {
|
|
230
231
|
const html = compiledTemplate({
|
|
231
232
|
headTags: headTags.join("\n"),
|
|
232
233
|
bodyTags: bodyTags.join("\n"),
|
|
233
|
-
reportFilesScript:
|
|
234
|
+
reportFilesScript: reportDataScriptPlaceholder,
|
|
234
235
|
reportOptions: stringifyForInlineScript(reportOptions),
|
|
235
236
|
analyticsEnable: true,
|
|
236
237
|
allureVersion,
|
|
@@ -238,7 +239,7 @@ export const generateStaticFiles = async (payload) => {
|
|
|
238
239
|
reportName,
|
|
239
240
|
singleFile: payload.singleFile,
|
|
240
241
|
});
|
|
241
|
-
await reportFiles.addFile("index.html",
|
|
242
|
+
await reportFiles.addFile("index.html", injectReportDataScript(html, reportDataFiles));
|
|
242
243
|
}
|
|
243
244
|
catch (err) {
|
|
244
245
|
if (err instanceof RangeError) {
|
package/dist/plugin.js
CHANGED
package/dist/static/report.tar
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allurereport/plugin-classic",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.21.0",
|
|
4
4
|
"description": "The classic version of Allure HTML report",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"allure",
|
|
@@ -26,23 +26,26 @@
|
|
|
26
26
|
"build": "run clean && tsc --project ./tsconfig.json && node ../../scripts/pack-report-static.mjs ../web-classic/dist/multi ./dist/static/report.tar",
|
|
27
27
|
"clean": "rimraf ./dist",
|
|
28
28
|
"test": "rimraf ./out && vitest run",
|
|
29
|
+
"test:unit": "yarn test",
|
|
29
30
|
"lint": "oxlint --import-plugin src test features stories",
|
|
30
31
|
"lint:fix": "oxlint --import-plugin --fix src test features stories"
|
|
31
32
|
},
|
|
32
33
|
"dependencies": {
|
|
33
|
-
"@allurereport/charts-api": "3.
|
|
34
|
-
"@allurereport/core-api": "3.
|
|
35
|
-
"@allurereport/plugin-api": "3.
|
|
36
|
-
"@allurereport/web-commons": "3.
|
|
34
|
+
"@allurereport/charts-api": "3.21.0",
|
|
35
|
+
"@allurereport/core-api": "3.21.0",
|
|
36
|
+
"@allurereport/plugin-api": "3.21.0",
|
|
37
|
+
"@allurereport/web-commons": "3.21.0",
|
|
37
38
|
"d3-shape": "^3.2.0",
|
|
38
|
-
"handlebars": "
|
|
39
|
-
"markdown-it": "^
|
|
39
|
+
"handlebars": "4.7.10",
|
|
40
|
+
"markdown-it": "^15.0.2"
|
|
40
41
|
},
|
|
41
42
|
"devDependencies": {
|
|
42
|
-
"@allurereport/
|
|
43
|
+
"@allurereport/test-config": "3.21.0",
|
|
44
|
+
"@allurereport/web-classic": "3.21.0",
|
|
43
45
|
"@types/d3-shape": "^3.1.8",
|
|
44
46
|
"@types/markdown-it": "^14.1.2",
|
|
45
47
|
"@types/node": "^20",
|
|
48
|
+
"@vitest/coverage-istanbul": "^4.1.0",
|
|
46
49
|
"@vitest/runner": "^2",
|
|
47
50
|
"allure-js-commons": "^3",
|
|
48
51
|
"allure-vitest": "^3",
|