@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.
@@ -1,4 +1,10 @@
1
- export type Statistic = {
1
+ export type DiffStatistic = {
2
+ regressed?: number;
3
+ fixed?: number;
4
+ malfunctioned?: number;
5
+ new?: number;
6
+ };
7
+ export type Statistic = DiffStatistic & {
2
8
  failed?: number;
3
9
  broken?: number;
4
10
  passed?: number;
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.15",
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.8",
35
- "@vitest/snapshot": "^2.1.8",
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.8"
46
+ "vitest": "^2.1.9"
47
47
  }
48
48
  }