@allurereport/plugin-api 3.6.2 → 3.8.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 +1 -0
- package/dist/plugin.d.ts +8 -7
- package/dist/store.d.ts +5 -1
- package/dist/store.js +1 -0
- package/package.json +2 -2
package/dist/config.d.ts
CHANGED
package/dist/plugin.d.ts
CHANGED
|
@@ -68,18 +68,19 @@ export interface PluginGlobals {
|
|
|
68
68
|
export interface BatchOptions {
|
|
69
69
|
maxTimeout?: number;
|
|
70
70
|
}
|
|
71
|
+
export type RealtimeListenerResult = void | Promise<void>;
|
|
71
72
|
export interface RealtimeSubscriber {
|
|
72
73
|
onGlobalAttachment(listener: (payload: {
|
|
73
74
|
attachment: ResultFile;
|
|
74
75
|
fileName?: string;
|
|
75
76
|
environment?: string;
|
|
76
|
-
}) =>
|
|
77
|
-
onGlobalExitCode(listener: (payload: ExitCode) =>
|
|
78
|
-
onGlobalError(listener: (error: PluginGlobalError) =>
|
|
79
|
-
onQualityGateResults(listener: (payload: QualityGateValidationResult[]) =>
|
|
80
|
-
onTestResults(listener: (trIds: string[]) =>
|
|
81
|
-
onTestFixtureResults(listener: (tfrIds: string[]) =>
|
|
82
|
-
onAttachmentFiles(listener: (afIds: string[]) =>
|
|
77
|
+
}) => RealtimeListenerResult): () => void;
|
|
78
|
+
onGlobalExitCode(listener: (payload: ExitCode) => RealtimeListenerResult): () => void;
|
|
79
|
+
onGlobalError(listener: (error: PluginGlobalError) => RealtimeListenerResult): () => void;
|
|
80
|
+
onQualityGateResults(listener: (payload: QualityGateValidationResult[]) => RealtimeListenerResult): () => void;
|
|
81
|
+
onTestResults(listener: (trIds: string[]) => RealtimeListenerResult, options?: BatchOptions): () => void;
|
|
82
|
+
onTestFixtureResults(listener: (tfrIds: string[]) => RealtimeListenerResult, options?: BatchOptions): () => void;
|
|
83
|
+
onAttachmentFiles(listener: (afIds: string[]) => RealtimeListenerResult, options?: BatchOptions): () => void;
|
|
83
84
|
}
|
|
84
85
|
export interface RealtimeEventsDispatcher {
|
|
85
86
|
sendGlobalAttachment(attachment: ResultFile, fileName?: string, environment?: string): void;
|
package/dist/store.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AttachmentLink, EnvironmentIdentity, HistoryDataPoint, HistoryTestResult, KnownTestFailure, ReportVariables, Statistic, TestCase, TestEnvGroup, TestError, TestFixtureResult, TestResult } from "@allurereport/core-api";
|
|
1
|
+
import type { AllureCheckResult, AttachmentLink, EnvironmentIdentity, HistoryDataPoint, HistoryTestResult, KnownTestFailure, ReportVariables, Statistic, TestCase, TestEnvGroup, TestError, TestFixtureResult, TestResult } from "@allurereport/core-api";
|
|
2
2
|
import type { ExitCode, PluginGlobalAttachment, PluginGlobalError } from "./plugin.js";
|
|
3
3
|
import type { QualityGateValidationResult } from "./qualityGate.js";
|
|
4
4
|
import type { ResultFile } from "./resultFile.js";
|
|
@@ -17,6 +17,8 @@ export interface AllureStore {
|
|
|
17
17
|
allHistoryDataPointsByEnvironmentId: (environmentId: string) => Promise<HistoryDataPoint[]>;
|
|
18
18
|
allKnownIssues: () => Promise<KnownTestFailure[]>;
|
|
19
19
|
allNewTestResults: (filter?: TestResultFilter, history?: HistoryDataPoint[]) => Promise<TestResult[]>;
|
|
20
|
+
addCheckResult: (result: AllureCheckResult) => Promise<void>;
|
|
21
|
+
allCheckResults: () => Promise<AllureCheckResult[]>;
|
|
20
22
|
qualityGateResults: () => Promise<QualityGateValidationResult[]>;
|
|
21
23
|
qualityGateResultsByEnv: () => Promise<Record<string, QualityGateValidationResult[]>>;
|
|
22
24
|
qualityGateResultsByEnvironmentId: () => Promise<Record<string, QualityGateValidationResult[]>>;
|
|
@@ -62,6 +64,7 @@ export interface AllureStoreDump {
|
|
|
62
64
|
attachments: Record<string, AttachmentLink>;
|
|
63
65
|
globalAttachmentIds: string[];
|
|
64
66
|
globalErrors: PluginGlobalError[];
|
|
67
|
+
checkResults: AllureCheckResult[];
|
|
65
68
|
testCases: Record<string, TestCase>;
|
|
66
69
|
fixtures: Record<string, TestFixtureResult>;
|
|
67
70
|
environments: Array<string | EnvironmentIdentity>;
|
|
@@ -82,6 +85,7 @@ export declare enum AllureStoreDumpFiles {
|
|
|
82
85
|
GlobalErrors = "global-errors.json",
|
|
83
86
|
GlobalAttachments = "global-attachments.json",
|
|
84
87
|
Attachments = "attachments.json",
|
|
88
|
+
CheckResults = "check-results.json",
|
|
85
89
|
Environments = "environments.json",
|
|
86
90
|
ReportVariables = "report-variables.json",
|
|
87
91
|
IndexAttachmentsByTestResults = "index-attachments-by-test-results.json",
|
package/dist/store.js
CHANGED
|
@@ -6,6 +6,7 @@ export var AllureStoreDumpFiles;
|
|
|
6
6
|
AllureStoreDumpFiles["GlobalErrors"] = "global-errors.json";
|
|
7
7
|
AllureStoreDumpFiles["GlobalAttachments"] = "global-attachments.json";
|
|
8
8
|
AllureStoreDumpFiles["Attachments"] = "attachments.json";
|
|
9
|
+
AllureStoreDumpFiles["CheckResults"] = "check-results.json";
|
|
9
10
|
AllureStoreDumpFiles["Environments"] = "environments.json";
|
|
10
11
|
AllureStoreDumpFiles["ReportVariables"] = "report-variables.json";
|
|
11
12
|
AllureStoreDumpFiles["IndexAttachmentsByTestResults"] = "index-attachments-by-test-results.json";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allurereport/plugin-api",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.0",
|
|
4
4
|
"description": "Allure Plugin API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"allure"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"lint:fix": "oxlint --import-plugin --fix src test features stories"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@allurereport/core-api": "3.
|
|
29
|
+
"@allurereport/core-api": "3.8.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^20.17.9",
|