tdpw
Version:
CLI tool for uploading Playwright test reports to TestDino platform with Azure storage support
35 lines • 932 B
TypeScript
import { PlaywrightReport } from './parser';
/**
* Individual test result after transformation
*/
export interface TestResult {
testId: string;
title: string;
status: string;
duration: number;
file: string;
line?: number | undefined;
column?: number | undefined;
workerIndex: number;
parallelIndex: number;
retry: number;
startTime: string;
errors: unknown[];
stdout: unknown[];
stderr: unknown[];
attachments: unknown[];
}
/**
* Transformed report summary and test list
*/
export interface TransformedReport {
stats: PlaywrightReport['stats'];
projects: unknown[];
tests: TestResult[];
}
/**
* Transform a parsed Playwright report into a flatter structure for uploading.
* @param report Parsed PlaywrightReport
*/
export declare function transformPlaywrightReport(report: PlaywrightReport): TransformedReport;
//# sourceMappingURL=transformers.d.ts.map