@allurereport/plugin-classic 3.0.0-beta.13 → 3.0.0-beta.15
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.js +3 -1
- package/dist/plugin.js +3 -0
- package/package.json +6 -6
package/dist/generators.js
CHANGED
|
@@ -198,15 +198,17 @@ export const generateStaticFiles = async (payload) => {
|
|
|
198
198
|
const mainJsContentBuffer = await readFile(mainJsSource);
|
|
199
199
|
bodyTags.push(createScriptTag(`data:text/javascript;base64,${mainJsContentBuffer.toString("base64")}`));
|
|
200
200
|
}
|
|
201
|
+
const now = Date.now();
|
|
201
202
|
const reportOptions = {
|
|
202
203
|
reportName,
|
|
203
204
|
logo,
|
|
204
205
|
theme,
|
|
205
206
|
reportLanguage,
|
|
206
|
-
createdAt:
|
|
207
|
+
createdAt: now,
|
|
207
208
|
reportUuid,
|
|
208
209
|
groupBy: groupBy?.length ? groupBy : ["parentSuite", "suite", "subSuite"],
|
|
209
210
|
allureVersion,
|
|
211
|
+
cacheKey: now.toString(),
|
|
210
212
|
};
|
|
211
213
|
const html = compile({
|
|
212
214
|
headTags: headTags.join("\n"),
|
package/dist/plugin.js
CHANGED
|
@@ -76,11 +76,14 @@ export class AwesomePlugin {
|
|
|
76
76
|
const allTrs = (await store.allTestResults()).filter(this.options.filter ? this.options.filter : () => true);
|
|
77
77
|
const duration = allTrs.reduce((acc, { duration: trDuration = 0 }) => acc + trDuration, 0);
|
|
78
78
|
const worstStatus = getWorstStatus(allTrs.map(({ status }) => status));
|
|
79
|
+
const createdAt = allTrs.reduce((acc, { stop }) => Math.max(acc, stop || 0), 0);
|
|
79
80
|
return {
|
|
80
81
|
name: this.options.reportName || context.reportName,
|
|
81
82
|
stats: await store.testsStatistic(this.options.filter),
|
|
82
83
|
status: worstStatus ?? "passed",
|
|
84
|
+
createdAt,
|
|
83
85
|
duration,
|
|
86
|
+
plugin: "Classic",
|
|
84
87
|
};
|
|
85
88
|
}
|
|
86
89
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allurereport/plugin-classic",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.15",
|
|
4
4
|
"description": "The classic version of Allure HTML report",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"allure",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"test": "rimraf ./out && vitest run"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@allurereport/core-api": "3.0.0-beta.
|
|
34
|
-
"@allurereport/plugin-api": "3.0.0-beta.
|
|
35
|
-
"@allurereport/web-awesome": "3.0.0-beta.
|
|
36
|
-
"@allurereport/web-classic": "3.0.0-beta.
|
|
37
|
-
"@allurereport/web-commons": "3.0.0-beta.
|
|
33
|
+
"@allurereport/core-api": "3.0.0-beta.15",
|
|
34
|
+
"@allurereport/plugin-api": "3.0.0-beta.15",
|
|
35
|
+
"@allurereport/web-awesome": "3.0.0-beta.15",
|
|
36
|
+
"@allurereport/web-classic": "3.0.0-beta.15",
|
|
37
|
+
"@allurereport/web-commons": "3.0.0-beta.15",
|
|
38
38
|
"d3-shape": "^3.2.0",
|
|
39
39
|
"handlebars": "^4.7.8"
|
|
40
40
|
},
|