/** * Spec runner service. * * Orchestrates the full execution lifecycle: * 1. Parse + validate spec * 2. Resolve env vars * 3. Resolve flows (inline runFlow references) * 4. Launch Playwright browser + context + page * 5. Execute each step with error handling + retries * 6. Capture screenshots / traces on failure * 7. Return structured results */ import type { ResolvedConfig, SpecResult, RunSummary } from "../../domain/index"; export interface RunOptions { readonly headed?: boolean; readonly browser?: ResolvedConfig["browser"]; readonly env?: Readonly>; readonly baseUrl?: string; readonly screenshot?: ResolvedConfig["screenshot"]; readonly trace?: ResolvedConfig["trace"]; readonly reporters?: ResolvedConfig["reporters"]; readonly timeout?: number; readonly retries?: number; readonly tags?: readonly string[]; readonly cwd?: string; readonly configFilePath?: string; } export interface RunSpecOptions extends RunOptions { readonly specPath: string; } export interface RunManyOptions extends RunOptions { readonly specPaths: readonly string[]; readonly parallel?: boolean; } /** * Run a single spec file. */ export declare function runSpec(options: RunSpecOptions): Promise; /** * Run multiple spec files. */ export declare function runMany(options: RunManyOptions): Promise; //# sourceMappingURL=runner.d.ts.map