可选version
version?: string
可选testDir
testDir?: string
可选outputDir
outputDir?: string
可选baseURL
baseURL?: string
可选retries
retries?: number
可选timeout
timeout?: number
可选workers
workers?: number
可选reporters
reporters?: string[]
headers?: Record<string, string>
可选flakyThreshold
flakyThreshold?: number
可选isolateFlaky
isolateFlaky?: boolean
可选traces
traces?: {
enabled?: boolean;
mode?: "off" | "on" | "retain-on-failure" | "on-first-retry";
}
可选artifacts
artifacts?: {
enabled?: boolean;
screenshots?: "off" | "on" | "only-on-failure";
videos?: "off" | "on" | "retain-on-failure" | "on-first-retry";
}
可选visualTesting
visualTesting?: {
enabled?: boolean;
threshold?: number;
maxDiffPixels?: number;
updateSnapshots?: boolean;
}
可选annotations
annotations?: {
enabled?: boolean;
respectSkip?: boolean;
respectOnly?: boolean;
respectFail?: boolean;
respectSlow?: boolean;
respectFixme?: boolean;
}
tags?: { enabled?: boolean; include?: string[]; exclude?: string[] }
可选environmentTag
environmentTag?: string
可选processTimeout
processTimeout?: number
可选htmlReport
htmlReport?: boolean
可选dashboard
dashboard?: { port?: number; outputDir?: string; dataDir?: string }
可选customErrorPatterns
customErrorPatterns?: {
id: string;
category:
| "unknown"
| "assertion"
| "timeout"
| "network"
| "selector"
| "frame"
| "auth";
name: string;
description: string;
regex: string[];
rootCauseTemplate: { zh: string; en: string };
suggestionsTemplate: { zh: string[]; en: string[] };
docLinks?: { title: string; url: string }[];
}[]
进程级超时(毫秒),0 表示不限制