1 | /**
|
2 | * matman 的配置类型
|
3 | *
|
4 | * @param {String} rootPath matman 项目的根目录
|
5 | * @param {String} caseModulesPath 测试案例的根目录
|
6 | * @param {String} crawlerBuildPath 前端爬虫脚本构建之后的目录
|
7 | * @param {Boolean} crawlerInjectJQuery 前端爬虫脚本中是否注入jQuery
|
8 | * @param {String} screenshotPath 屏幕截图保存的路径
|
9 | * @param {String} coveragePath 覆盖率文件保存的路径
|
10 | * @param {String} matmanResultPath MatmanResult 执行结果数据保存的路径
|
11 | * @param {Boolean} isDevBuild 是否为开发模式
|
12 | * @author helinjiang
|
13 | */
|
14 | export interface MatmanConfigOpts {
|
15 | rootPath?: string;
|
16 | caseModulesPath?: string;
|
17 | crawlerBuildPath?: string;
|
18 | crawlerInjectJQuery?: boolean;
|
19 | screenshotPath?: string;
|
20 | coveragePath?: string;
|
21 | matmanResultPath?: string;
|
22 | isDevBuild?: boolean;
|
23 | }
|
24 | export interface PageDriverOpts {
|
25 | caseModuleFilePath: string;
|
26 | tag?: string;
|
27 | show?: boolean;
|
28 | doNotCloseBrowser?: boolean;
|
29 | useRecorder?: boolean;
|
30 | delayBeforeRun?: number;
|
31 | isInIDE?: boolean;
|
32 | }
|