-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.d.ts
56 lines (51 loc) · 1.28 KB
/
index.d.ts
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
51
52
53
54
55
56
interface TestrailOptions {
testrail: {
host: string;
user: string;
password: string;
filters: {
plan_id: number;
run_id?: number;
custom_status?: [number];
};
verifyFilters?: {
custom_status?: [number];
}
};
}
export interface ScenarioSynchronizerOptions extends TestrailOptions {
featuresDir: string;
stepDefinitionsDir: string;
overwrite?: {
local?: boolean | string;
remote?: boolean | string;
};
stepDefinitionsTemplate?: string;
stepDefinitionsStringPatterns?: boolean;
stepDefinitionsExpressions?: boolean;
indent?: string;
silent?: boolean;
directoryStructure?: {
type?: string;
skipRootFolder?: number;
};
verify?: boolean;
findUnused?: boolean;
pushResults?: boolean;
debug?: boolean;
newTestCase?: {
section_id: number;
[key: string]: any;
};
}
export class ScenarioSynchronizer {
constructor();
synchronize(options: ScenarioSynchronizerOptions, callback: Function): void;
}
export class ResultSynchronizer {
constructor(options: ScenarioSynchronizerOptions);
saveTestResult(scenario: any, callback: Function): void;
pushTestResults(callback: Function): void;
}
export function readConfig(): ScenarioSynchronizerOptions;
export function install(cucumber: any): void;