@allurereport/plugin-api 3.18.0 → 3.19.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/config.d.ts +2 -1
- package/dist/report.d.ts +1 -1
- package/dist/store.d.ts +2 -2
- package/dist/store.js +1 -1
- package/dist/utils/summary.js +2 -1
- package/package.json +2 -2
package/dist/config.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AllureServiceConfig, CategoriesConfig, DefaultLabelsConfig, EnvironmentsConfig, PerformanceConfig, ReportVariables, ResolutionsConfig } from "@allurereport/core-api";
|
|
1
|
+
import type { AllureServiceConfig, CategoriesConfig, DefaultLabelsConfig, EnvironmentsConfig, FlakyDetectionConfig, PerformanceConfig, ReportVariables, ResolutionsConfig } from "@allurereport/core-api";
|
|
2
2
|
import type { PluginDescriptor } from "./plugin.js";
|
|
3
3
|
import type { QualityGateConfig } from "./qualityGate.js";
|
|
4
4
|
export interface Config {
|
|
@@ -10,6 +10,7 @@ export interface Config {
|
|
|
10
10
|
historyPath?: string;
|
|
11
11
|
historyBaseUrl?: string;
|
|
12
12
|
historyLimit?: number;
|
|
13
|
+
flakyDetection?: FlakyDetectionConfig;
|
|
13
14
|
resolutions?: ResolutionsConfig;
|
|
14
15
|
defaultLabels?: DefaultLabelsConfig;
|
|
15
16
|
dump?: string;
|
package/dist/report.d.ts
CHANGED
package/dist/store.d.ts
CHANGED
|
@@ -84,7 +84,7 @@ export interface AllureStoreDump {
|
|
|
84
84
|
qualityGateResults: QualityGateValidationResult[];
|
|
85
85
|
metrics?: MetricSample[];
|
|
86
86
|
indexAttachmentByTestResult: Record<string, string[]>;
|
|
87
|
-
|
|
87
|
+
indexTestResultByRetryHash: Record<string, string[]>;
|
|
88
88
|
indexTestResultByTestCase: Record<string, string[]>;
|
|
89
89
|
indexTestResultByResolutionIssue: Record<string, string[]>;
|
|
90
90
|
indexAttachmentByFixture: Record<string, string[]>;
|
|
@@ -103,7 +103,7 @@ export declare enum AllureStoreDumpFiles {
|
|
|
103
103
|
ReportVariables = "report-variables.json",
|
|
104
104
|
ResolutionIssues = "resolution-issues.json",
|
|
105
105
|
IndexAttachmentsByTestResults = "index-attachments-by-test-results.json",
|
|
106
|
-
|
|
106
|
+
IndexTestResultsByRetryHash = "index-test-results-by-retry-hash.json",
|
|
107
107
|
IndexTestResultsByTestCase = "index-test-results-by-test-case.json",
|
|
108
108
|
IndexTestResultsByResolutionIssue = "index-test-results-by-resolution-issue.json",
|
|
109
109
|
IndexAttachmentsByFixture = "index-attachments-by-fixture.json",
|
package/dist/store.js
CHANGED
|
@@ -11,7 +11,7 @@ export var AllureStoreDumpFiles;
|
|
|
11
11
|
AllureStoreDumpFiles["ReportVariables"] = "report-variables.json";
|
|
12
12
|
AllureStoreDumpFiles["ResolutionIssues"] = "resolution-issues.json";
|
|
13
13
|
AllureStoreDumpFiles["IndexAttachmentsByTestResults"] = "index-attachments-by-test-results.json";
|
|
14
|
-
AllureStoreDumpFiles["
|
|
14
|
+
AllureStoreDumpFiles["IndexTestResultsByRetryHash"] = "index-test-results-by-retry-hash.json";
|
|
15
15
|
AllureStoreDumpFiles["IndexTestResultsByTestCase"] = "index-test-results-by-test-case.json";
|
|
16
16
|
AllureStoreDumpFiles["IndexTestResultsByResolutionIssue"] = "index-test-results-by-resolution-issue.json";
|
|
17
17
|
AllureStoreDumpFiles["IndexAttachmentsByFixture"] = "index-attachments-by-fixture.json";
|
package/dist/utils/summary.js
CHANGED
|
@@ -35,6 +35,7 @@ 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 currentIds = new Set(allTrs.map(({ id }) => id));
|
|
38
39
|
const mainBranchHistory = (await history?.readHistory?.({ branch: "" })) ?? [];
|
|
39
40
|
const newTrs = await store.allNewTestResults(filter, mainBranchHistory);
|
|
40
41
|
const retryFlags = await Promise.all(allTrs.map(async (tr) => (await store.retriesByTr(tr)).length > 0));
|
|
@@ -46,7 +47,7 @@ export const createPluginSummary = async (params) => {
|
|
|
46
47
|
return {
|
|
47
48
|
stats: await store.testsStatistic(filter),
|
|
48
49
|
status: worstStatus ?? "passed",
|
|
49
|
-
newTests: newTrs.map(({ id }) => id),
|
|
50
|
+
newTests: newTrs.filter(({ id }) => currentIds.has(id)).map(({ id }) => id),
|
|
50
51
|
flakyTests: flakyTrs.map(({ id }) => id),
|
|
51
52
|
retryTests: retryTrs.map(({ id }) => id),
|
|
52
53
|
checks: allChecks.map(convertToSummaryCheckResult),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allurereport/plugin-api",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.19.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.19.0",
|
|
33
33
|
"tar-stream": "3.1.7"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|