@allurereport/plugin-api 3.0.0-beta.14 → 3.0.0-beta.16
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 +5 -0
- package/dist/plugin.d.ts +5 -2
- package/package.json +5 -5
package/dist/config.d.ts
CHANGED
|
@@ -12,5 +12,10 @@ export interface Config {
|
|
|
12
12
|
plugins?: Record<string, PluginDescriptor>;
|
|
13
13
|
qualityGate?: QualityGateConfig;
|
|
14
14
|
appendHistory?: boolean;
|
|
15
|
+
allureService?: {
|
|
16
|
+
url?: string;
|
|
17
|
+
project?: string;
|
|
18
|
+
accessToken?: string;
|
|
19
|
+
};
|
|
15
20
|
}
|
|
16
21
|
export declare const defineConfig: (allureConfig: Config) => Config;
|
package/dist/plugin.d.ts
CHANGED
|
@@ -6,14 +6,16 @@ export interface PluginDescriptor {
|
|
|
6
6
|
options?: Record<string, any>;
|
|
7
7
|
}
|
|
8
8
|
export interface ReportFiles {
|
|
9
|
-
addFile(path: string, data: Buffer): Promise<
|
|
9
|
+
addFile(path: string, data: Buffer): Promise<string>;
|
|
10
10
|
}
|
|
11
11
|
export interface PluginState {
|
|
12
12
|
set(key: string, value: any): Promise<void>;
|
|
13
|
-
get(key: string): Promise<
|
|
13
|
+
get<T>(key: string): Promise<T>;
|
|
14
14
|
unset(key: string): Promise<void>;
|
|
15
15
|
}
|
|
16
16
|
export interface PluginContext {
|
|
17
|
+
id: string;
|
|
18
|
+
publish: boolean;
|
|
17
19
|
state: PluginState;
|
|
18
20
|
allureVersion: string;
|
|
19
21
|
reportUuid: string;
|
|
@@ -22,6 +24,7 @@ export interface PluginContext {
|
|
|
22
24
|
}
|
|
23
25
|
export interface PluginSummary {
|
|
24
26
|
href?: string;
|
|
27
|
+
remoteHref?: string;
|
|
25
28
|
name: string;
|
|
26
29
|
stats: Statistic;
|
|
27
30
|
status: TestStatus;
|
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.16",
|
|
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.16"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@stylistic/eslint-plugin": "^2.6.1",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"@types/node": "^20.17.9",
|
|
35
35
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
36
36
|
"@typescript-eslint/parser": "^8.0.0",
|
|
37
|
-
"@vitest/runner": "^2.1.
|
|
38
|
-
"@vitest/snapshot": "^2.1.
|
|
37
|
+
"@vitest/runner": "^2.1.9",
|
|
38
|
+
"@vitest/snapshot": "^2.1.9",
|
|
39
39
|
"allure-vitest": "^3.0.9",
|
|
40
40
|
"eslint": "^8.57.0",
|
|
41
41
|
"eslint-config-prettier": "^9.1.0",
|
|
@@ -46,6 +46,6 @@
|
|
|
46
46
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
47
47
|
"rimraf": "^6.0.1",
|
|
48
48
|
"typescript": "^5.6.3",
|
|
49
|
-
"vitest": "^2.1.
|
|
49
|
+
"vitest": "^2.1.9"
|
|
50
50
|
}
|
|
51
51
|
}
|