@allurereport/plugin-api 3.0.0-beta.10 → 3.0.0-beta.11
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/plugin.d.ts +9 -0
- package/dist/store.d.ts +6 -2
- package/package.json +2 -2
package/dist/plugin.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Statistic, TestStatus } from "@allurereport/core-api";
|
|
1
2
|
import type { AllureStore } from "./store.js";
|
|
2
3
|
export interface PluginDescriptor {
|
|
3
4
|
import?: string;
|
|
@@ -19,6 +20,13 @@ export interface PluginContext {
|
|
|
19
20
|
reportName: string;
|
|
20
21
|
reportFiles: ReportFiles;
|
|
21
22
|
}
|
|
23
|
+
export interface PluginSummary {
|
|
24
|
+
href?: string;
|
|
25
|
+
name: string;
|
|
26
|
+
stats: Statistic;
|
|
27
|
+
status: TestStatus;
|
|
28
|
+
duration: number;
|
|
29
|
+
}
|
|
22
30
|
export interface BatchOptions {
|
|
23
31
|
maxTimeout?: number;
|
|
24
32
|
}
|
|
@@ -31,4 +39,5 @@ export interface Plugin {
|
|
|
31
39
|
start?(context: PluginContext, store: AllureStore, realtime: Realtime): Promise<void>;
|
|
32
40
|
update?(context: PluginContext, store: AllureStore): Promise<void>;
|
|
33
41
|
done?(context: PluginContext, store: AllureStore): Promise<void>;
|
|
42
|
+
info?(context: PluginContext, store: AllureStore): Promise<PluginSummary>;
|
|
34
43
|
}
|
package/dist/store.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type { AttachmentLink, HistoryDataPoint, HistoryTestResult, KnownTestFailure, Statistic, TestCase, TestFixtureResult, TestResult } from "@allurereport/core-api";
|
|
1
|
+
import type { AttachmentLink, HistoryDataPoint, HistoryTestResult, KnownTestFailure, Statistic, TestCase, TestEnvGroup, TestFixtureResult, TestResult } from "@allurereport/core-api";
|
|
2
2
|
import type { ResultFile } from "./resultFile.js";
|
|
3
|
+
export type TestResultFilter = (testResult: TestResult) => boolean;
|
|
3
4
|
export interface AllureStore {
|
|
4
5
|
allTestCases: () => Promise<TestCase[]>;
|
|
5
6
|
allTestResults: (options?: {
|
|
6
|
-
includeHidden
|
|
7
|
+
includeHidden?: boolean;
|
|
7
8
|
}) => Promise<TestResult[]>;
|
|
8
9
|
allAttachments: () => Promise<AttachmentLink[]>;
|
|
9
10
|
allMetadata: () => Promise<Record<string, any>>;
|
|
@@ -29,4 +30,7 @@ export interface AllureStore {
|
|
|
29
30
|
testsStatistic: (filter?: (testResult: TestResult) => boolean) => Promise<Statistic>;
|
|
30
31
|
allEnvironments: () => Promise<string[]>;
|
|
31
32
|
testResultsByEnvironment: (env: string) => Promise<TestResult[]>;
|
|
33
|
+
allTestEnvGroups: () => Promise<TestEnvGroup[]>;
|
|
34
|
+
allVariables: () => Promise<Record<string, any>>;
|
|
35
|
+
envVariables: (env: string) => Promise<Record<string, any>>;
|
|
32
36
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allurereport/plugin-api",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.11",
|
|
4
4
|
"description": "Allure Plugin API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"allure"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"test": "rimraf ./out && vitest run"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@allurereport/core-api": "3.0.0-beta.
|
|
29
|
+
"@allurereport/core-api": "3.0.0-beta.11"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@stylistic/eslint-plugin": "^2.6.1",
|