@allurereport/plugin-api 3.19.1 → 3.20.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/report.d.ts +1 -0
- package/dist/utils/summary.js +3 -2
- package/package.json +2 -2
package/dist/report.d.ts
CHANGED
|
@@ -90,6 +90,7 @@ export type ReportTreeLeaf = Pick<ReportTestResult, "duration" | "name" | "start
|
|
|
90
90
|
tags?: string[];
|
|
91
91
|
categories?: string[];
|
|
92
92
|
severity?: string;
|
|
93
|
+
resolutionStatus?: ResolutionCategory | "none";
|
|
93
94
|
};
|
|
94
95
|
export type ReportTreeGroup = WithChildren & DefaultTreeGroup & {
|
|
95
96
|
nodeId: string;
|
package/dist/utils/summary.js
CHANGED
|
@@ -35,11 +35,12 @@ export const createPluginSummary = async (params) => {
|
|
|
35
35
|
const { name, filter, plugin, store, history, meta } = params;
|
|
36
36
|
const allChecks = await store.allCheckResults();
|
|
37
37
|
const allTrs = await store.allTestResults({ filter });
|
|
38
|
+
const allTrsWithRetries = await store.allTestResults({ includeRetries: true });
|
|
38
39
|
const currentIds = new Set(allTrs.map(({ id }) => id));
|
|
39
40
|
const mainBranchHistory = (await history?.readHistory?.({ branch: "" })) ?? [];
|
|
40
41
|
const newTrs = await store.allNewTestResults(filter, mainBranchHistory);
|
|
41
|
-
const
|
|
42
|
-
const retryTrs = allTrs.filter((
|
|
42
|
+
const retryHashesWithRetries = new Set(allTrsWithRetries.flatMap((tr) => (tr.isRetry && tr.retryHash ? [tr.retryHash] : [])));
|
|
43
|
+
const retryTrs = allTrs.filter(({ retryHash }) => retryHash && retryHashesWithRetries.has(retryHash));
|
|
43
44
|
const flakyTrs = allTrs.filter((tr) => !!tr?.flaky);
|
|
44
45
|
const duration = calculateRunDuration(allTrs);
|
|
45
46
|
const worstStatus = getWorstStatus(allTrs.map(({ status }) => status));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allurereport/plugin-api",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.20.0",
|
|
4
4
|
"description": "Allure Plugin API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"allure"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"lint:fix": "oxlint --import-plugin --fix src test features stories"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@allurereport/core-api": "3.
|
|
32
|
+
"@allurereport/core-api": "3.20.0",
|
|
33
33
|
"tar-stream": "3.1.7"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|