-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathapi.ts
More file actions
50 lines (48 loc) · 1.27 KB
/
api.ts
File metadata and controls
50 lines (48 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import type {
DefaultLabelsConfig,
EnvironmentsConfig,
KnownTestFailure,
ReportVariables,
} from "@allurereport/core-api";
import type { Plugin, QualityGateConfig, ReportFiles } from "@allurereport/plugin-api";
import type { ResultsReader } from "@allurereport/reader-api";
export interface PluginInstance {
id: string;
enabled: boolean;
plugin: Plugin;
options: Record<string, any>;
}
export interface FullConfig {
name: string;
output: string;
historyPath: string;
knownIssuesPath: string;
qualityGate?: QualityGateConfig;
/**
* You can specify default labels for tests which don't have them at all
* Could be useful if you want to highlight specific group of tests, e.g. when it's necessary to set the labels manually
* @example
* ```json
* {
* "defaultLabels": {
* "severity": "unspecified severity, set it manually",
* "tag": ["foo", "bar"]
* }
* }
* ```
*/
defaultLabels?: DefaultLabelsConfig;
environments?: EnvironmentsConfig;
variables?: ReportVariables;
reportFiles: ReportFiles;
readers?: ResultsReader[];
plugins?: PluginInstance[];
appendHistory?: boolean;
known?: KnownTestFailure[];
realTime?: any;
allureService?: {
url?: string;
project?: string;
accessToken?: string;
};
}