UNPKG

@alphabin/trx

Version:

TRX reporter for Playwright tests with Azure Blob Storage upload support

49 lines (48 loc) 1.12 kB
/** * Simplified representation of Playwright test report structure */ export interface PlaywrightConfig { version: string; rootDir: string; workers: number; retries: number; reporter: Array<string | [string, object?]>; [key: string]: any; } export interface PlaywrightTest { status: 'passed' | 'failed' | 'timedOut' | 'skipped'; duration: number; error?: { message?: string; stack?: string; value?: string; } | null; retry?: number; attachments?: Array<{ name: string; contentType: string; path?: string; body?: string; }>; [key: string]: any; } export interface PlaywrightSpec { title: string; tests: PlaywrightTest[]; [key: string]: any; } export interface PlaywrightSuite { title: string; file: string; line: number; column: number; specs: PlaywrightSpec[]; suites: PlaywrightSuite[]; [key: string]: any; } export interface PlaywrightReport { config: PlaywrightConfig; suites: PlaywrightSuite[]; metadata?: Record<string, any>; [key: string]: any; }