@allurereport/plugin-allure2 3.18.0 → 3.19.1

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.
@@ -210,8 +210,8 @@ export const convertTestResult = (context, test) => {
210
210
  uid: test.id,
211
211
  name: test.name,
212
212
  fullName: test.fullName,
213
- historyId: test.historyId,
214
213
  testId: test.testCase?.id,
214
+ retryHash: test.retryHash,
215
215
  time: {
216
216
  start: test.start,
217
217
  stop: test.stop,
package/dist/model.d.ts CHANGED
@@ -61,8 +61,8 @@ export interface Allure2TestResult {
61
61
  uid: string;
62
62
  name: string;
63
63
  fullName?: string;
64
- historyId?: string;
65
64
  testId?: string;
65
+ retryHash: string | null;
66
66
  time: Allure2Time;
67
67
  description?: string;
68
68
  descriptionHtml?: string;
package/dist/plugin.js CHANGED
@@ -33,13 +33,14 @@ export class Allure2Plugin {
33
33
  const fixtures = related.fixturesByTrId.get(value.id) ?? [];
34
34
  const retries = related.retriesByTrId.get(value.id) ?? [];
35
35
  const history = related.historyByTrId.get(value.id) ?? [];
36
+ const canonicalLegacyHistory = value.retryHash ? legacyHistory[value.retryHash] : undefined;
36
37
  const allure2TestResult = convertTestResult({
37
38
  attachmentMap,
38
39
  fixtures,
39
40
  categories,
40
41
  retries,
41
42
  history,
42
- legacyHistory: value.historyId ? legacyHistory[value.historyId] : undefined,
43
+ legacyHistory: canonicalLegacyHistory,
43
44
  }, value);
44
45
  allTr.push(allure2TestResult);
45
46
  }
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allurereport/plugin-allure2",
3
- "version": "3.18.0",
3
+ "version": "3.19.1",
4
4
  "description": "The Allure 2-compatible HTML report",
5
5
  "keywords": [
6
6
  "allure",
@@ -30,12 +30,12 @@
30
30
  "lint:fix": "oxlint --import-plugin --fix src test features stories"
31
31
  },
32
32
  "dependencies": {
33
- "@allurereport/core-api": "3.18.0",
34
- "@allurereport/plugin-api": "3.18.0",
33
+ "@allurereport/core-api": "3.19.1",
34
+ "@allurereport/plugin-api": "3.19.1",
35
35
  "handlebars": "^4.7.9"
36
36
  },
37
37
  "devDependencies": {
38
- "@allurereport/web-allure2": "3.18.0",
38
+ "@allurereport/web-allure2": "3.19.1",
39
39
  "@types/node": "^20",
40
40
  "@vitest/runner": "^2",
41
41
  "allure-js-commons": "^3",