@allurereport/core 3.0.0-beta.8 → 3.0.0
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/api.d.ts +23 -13
- package/dist/config.d.ts +14 -8
- package/dist/config.js +90 -20
- package/dist/history.d.ts +8 -3
- package/dist/history.js +35 -20
- package/dist/index.d.ts +4 -2
- package/dist/index.js +4 -2
- package/dist/plugin.d.ts +6 -5
- package/dist/plugin.js +9 -3
- package/dist/qualityGate/index.d.ts +2 -0
- package/dist/qualityGate/index.js +2 -0
- package/dist/qualityGate/qualityGate.d.ts +21 -0
- package/dist/qualityGate/qualityGate.js +103 -0
- package/dist/qualityGate/rules.d.ts +6 -0
- package/dist/qualityGate/rules.js +55 -0
- package/dist/report.d.ts +19 -4
- package/dist/report.js +432 -55
- package/dist/store/convert.js +39 -10
- package/dist/store/store.d.ts +35 -10
- package/dist/store/store.js +446 -55
- package/dist/utils/event.d.ts +38 -9
- package/dist/utils/event.js +101 -25
- package/dist/utils/flaky.d.ts +2 -0
- package/dist/utils/flaky.js +12 -0
- package/dist/utils/new.d.ts +6 -0
- package/dist/utils/new.js +23 -0
- package/package.json +34 -18
- package/dist/qualityGate.d.ts +0 -25
- package/dist/qualityGate.js +0 -116
package/dist/report.d.ts
CHANGED
|
@@ -1,16 +1,31 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { KnownTestFailure, TestResult } from "@allurereport/core-api";
|
|
2
|
+
import { type ResultFile } from "@allurereport/plugin-api";
|
|
2
3
|
import type { FullConfig } from "./api.js";
|
|
4
|
+
import { type QualityGateState } from "./qualityGate/index.js";
|
|
3
5
|
import { DefaultAllureStore } from "./store/store.js";
|
|
6
|
+
import { RealtimeEventsDispatcher, RealtimeSubscriber } from "./utils/event.js";
|
|
4
7
|
export declare class AllureReport {
|
|
5
8
|
#private;
|
|
9
|
+
readonly reportUuid: string;
|
|
10
|
+
reportUrl?: string;
|
|
6
11
|
constructor(opts: FullConfig);
|
|
12
|
+
get hasQualityGate(): boolean;
|
|
7
13
|
get store(): DefaultAllureStore;
|
|
8
|
-
get
|
|
9
|
-
get
|
|
14
|
+
get realtimeSubscriber(): RealtimeSubscriber;
|
|
15
|
+
get realtimeDispatcher(): RealtimeEventsDispatcher;
|
|
10
16
|
readDirectory: (resultsDir: string) => Promise<void>;
|
|
11
17
|
readFile: (resultsFile: string) => Promise<void>;
|
|
12
18
|
readResult: (data: ResultFile) => Promise<void>;
|
|
19
|
+
validate: (params: {
|
|
20
|
+
trs: TestResult[];
|
|
21
|
+
knownIssues: KnownTestFailure[];
|
|
22
|
+
state?: QualityGateState;
|
|
23
|
+
}) => Promise<{
|
|
24
|
+
fastFailed: boolean;
|
|
25
|
+
results: import("@allurereport/plugin-api").QualityGateValidationResult[];
|
|
26
|
+
}>;
|
|
13
27
|
start: () => Promise<void>;
|
|
28
|
+
dumpState: () => Promise<void>;
|
|
29
|
+
restoreState: (stages: string[]) => Promise<void>;
|
|
14
30
|
done: () => Promise<void>;
|
|
15
|
-
validate: () => Promise<void>;
|
|
16
31
|
}
|