@allurereport/core-api 3.0.0-beta.10 → 3.0.0-beta.12
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 +1 -0
- package/dist/constants.d.ts +4 -2
- package/dist/constants.js +2 -0
- package/dist/environment.d.ts +0 -5
- package/dist/history.d.ts +2 -0
- package/dist/model.d.ts +11 -0
- package/package.json +1 -1
package/dist/aggregate.d.ts
CHANGED
package/dist/constants.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { Statistic } from "./aggregate.js";
|
|
2
|
-
import type { TestStatus } from "./model.js";
|
|
3
|
-
export declare const statusesList: TestStatus[];
|
|
2
|
+
import type { SeverityLevel, TestStatus } from "./model.js";
|
|
3
|
+
export declare const statusesList: readonly TestStatus[];
|
|
4
|
+
export declare const severityLevels: readonly SeverityLevel[];
|
|
5
|
+
export declare const severityLabelName = "severity";
|
|
4
6
|
export declare const unsuccessfulStatuses: Set<TestStatus>;
|
|
5
7
|
export declare const successfulStatuses: Set<TestStatus>;
|
|
6
8
|
export declare const includedInSuccessRate: Set<TestStatus>;
|
package/dist/constants.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export const statusesList = ["failed", "broken", "passed", "skipped", "unknown"];
|
|
2
|
+
export const severityLevels = ["blocker", "critical", "normal", "minor", "trivial"];
|
|
3
|
+
export const severityLabelName = "severity";
|
|
2
4
|
export const unsuccessfulStatuses = new Set(["failed", "broken"]);
|
|
3
5
|
export const successfulStatuses = new Set(["passed"]);
|
|
4
6
|
export const includedInSuccessRate = new Set([...unsuccessfulStatuses, ...successfulStatuses]);
|
package/dist/environment.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { TestLabel } from "./metadata.js";
|
|
2
|
-
import type { TestResult } from "./model.js";
|
|
3
2
|
export interface EnvironmentItem {
|
|
4
3
|
name: string;
|
|
5
4
|
values: string[];
|
|
@@ -13,7 +12,3 @@ export type EnvironmentDescriptor = {
|
|
|
13
12
|
matcher: (payload: EnvironmentMatcherPayload) => boolean;
|
|
14
13
|
};
|
|
15
14
|
export type EnvironmentsConfig = Record<string, EnvironmentDescriptor>;
|
|
16
|
-
export type EnvTestGroup = Pick<TestResult, "fullName" | "name" | "status"> & {
|
|
17
|
-
id: string;
|
|
18
|
-
testResultsByEnv: Record<string, TestResult>;
|
|
19
|
-
};
|
package/dist/history.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TestLabel } from "./metadata.js";
|
|
1
2
|
import type { TestError, TestStatus } from "./model.js";
|
|
2
3
|
export interface HistoryTestResult {
|
|
3
4
|
id: string;
|
|
@@ -8,6 +9,7 @@ export interface HistoryTestResult {
|
|
|
8
9
|
start?: number;
|
|
9
10
|
stop?: number;
|
|
10
11
|
duration?: number;
|
|
12
|
+
labels?: TestLabel[];
|
|
11
13
|
}
|
|
12
14
|
export interface HistoryDataPoint {
|
|
13
15
|
uuid: string;
|
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 SeverityLevel = "blocker" | "critical" | "normal" | "minor" | "trivial";
|
|
4
5
|
export interface SourceMetadata {
|
|
5
6
|
readerId: string;
|
|
6
7
|
metadata: {
|
|
@@ -46,6 +47,13 @@ export interface TestResult {
|
|
|
46
47
|
retries?: TestResult[];
|
|
47
48
|
categories?: any;
|
|
48
49
|
}
|
|
50
|
+
export interface TestEnvGroup {
|
|
51
|
+
id: string;
|
|
52
|
+
name: string;
|
|
53
|
+
fullName?: string;
|
|
54
|
+
status: TestStatus;
|
|
55
|
+
testResultsByEnv: Record<string, string>;
|
|
56
|
+
}
|
|
49
57
|
export interface TestFixtureResult {
|
|
50
58
|
id: string;
|
|
51
59
|
testResultIds: string[];
|
|
@@ -71,6 +79,9 @@ export interface DefaultTestStepResult {
|
|
|
71
79
|
steps: TestStepResult[];
|
|
72
80
|
stepId?: string;
|
|
73
81
|
type: "step";
|
|
82
|
+
message?: string;
|
|
83
|
+
trace?: string;
|
|
84
|
+
hasSimilarErrorInSubSteps?: boolean;
|
|
74
85
|
}
|
|
75
86
|
export interface AttachmentLinkFile {
|
|
76
87
|
id: string;
|