@allurereport/core-api 3.0.0-beta.15 → 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/aggregate.d.ts +7 -1
- package/dist/history.d.ts +6 -0
- package/dist/model.d.ts +6 -0
- package/package.json +4 -4
package/dist/aggregate.d.ts
CHANGED
package/dist/history.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export interface HistoryTestResult {
|
|
|
10
10
|
stop?: number;
|
|
11
11
|
duration?: number;
|
|
12
12
|
labels?: TestLabel[];
|
|
13
|
+
url: string;
|
|
13
14
|
}
|
|
14
15
|
export interface HistoryDataPoint {
|
|
15
16
|
uuid: string;
|
|
@@ -18,4 +19,9 @@ export interface HistoryDataPoint {
|
|
|
18
19
|
knownTestCaseIds: string[];
|
|
19
20
|
testResults: Record<string, HistoryTestResult>;
|
|
20
21
|
metrics: Record<string, number>;
|
|
22
|
+
url: string;
|
|
23
|
+
}
|
|
24
|
+
export interface AllureHistory {
|
|
25
|
+
readHistory(branch?: string): Promise<HistoryDataPoint[]>;
|
|
26
|
+
appendHistory(history: HistoryDataPoint, branch?: string): Promise<void>;
|
|
21
27
|
}
|
package/dist/model.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { TestLabel, TestLink, TestParameter } from "./metadata.js";
|
|
2
2
|
import type { TestCase } from "./testCase.js";
|
|
3
3
|
export type TestStatus = "failed" | "broken" | "passed" | "skipped" | "unknown";
|
|
4
|
+
export type TestStatusTransition = "regressed" | "fixed" | "malfunctioned" | "new";
|
|
4
5
|
export type SeverityLevel = "blocker" | "critical" | "normal" | "minor" | "trivial";
|
|
5
6
|
export interface SourceMetadata {
|
|
6
7
|
readerId: string;
|
|
@@ -35,6 +36,7 @@ export interface TestResult {
|
|
|
35
36
|
flaky: boolean;
|
|
36
37
|
muted: boolean;
|
|
37
38
|
known: boolean;
|
|
39
|
+
transition?: TestStatusTransition;
|
|
38
40
|
hidden: boolean;
|
|
39
41
|
hostId?: string;
|
|
40
42
|
threadId?: string;
|
|
@@ -111,3 +113,7 @@ export interface AttachmentTestStepResult {
|
|
|
111
113
|
link: AttachmentLinkExpected | AttachmentLinkLinked | AttachmentLinkInvalid;
|
|
112
114
|
type: "attachment";
|
|
113
115
|
}
|
|
116
|
+
export interface RepoData {
|
|
117
|
+
name: string;
|
|
118
|
+
branch: string;
|
|
119
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allurereport/core-api",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.16",
|
|
4
4
|
"description": "Allure Core API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"allure"
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"@types/node": "^20.17.9",
|
|
32
32
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
33
33
|
"@typescript-eslint/parser": "^8.0.0",
|
|
34
|
-
"@vitest/runner": "^2.1.
|
|
35
|
-
"@vitest/snapshot": "^2.1.
|
|
34
|
+
"@vitest/runner": "^2.1.9",
|
|
35
|
+
"@vitest/snapshot": "^2.1.9",
|
|
36
36
|
"allure-vitest": "^3.0.9",
|
|
37
37
|
"eslint": "^8.57.0",
|
|
38
38
|
"eslint-config-prettier": "^9.1.0",
|
|
@@ -43,6 +43,6 @@
|
|
|
43
43
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
44
44
|
"rimraf": "^6.0.1",
|
|
45
45
|
"typescript": "^5.6.3",
|
|
46
|
-
"vitest": "^2.1.
|
|
46
|
+
"vitest": "^2.1.9"
|
|
47
47
|
}
|
|
48
48
|
}
|