@empiricalrun/reporter
v0.27.0
Published
Utility package for parsing and analyzing Playwright test reports.
Downloads
20,045
Readme
reporter
Utility package for parsing and analyzing Playwright test reports.
Exports
fetchReport(url)- Fetch a Playwright JSON report from a URLparseReportForAnalytics(report)- Parse a report for analytics datagetFlattenedTestList(suites)- Flatten nested test suites into a flat listbuildTestIdLookup(suites)- Build a lookup table from test IDs to test metadataderiveTestStatus(results)- Derive overall test status from resultscalculateEstimatedDuration(history, testIds)- Calculate estimated duration based on history
Types
JSONReport,JSONReportSpec,JSONReportSuite- Re-exported from@playwright/test/reporterFlattenedSpec- Flattened spec with nesting infoTestResultStatus-"pass" | "fail" | "flaky" | "skip"ParsedTestResult- Parsed test result for analyticsTestIdLookupEntry- Entry in the test ID lookup table
Development
pnpm build
pnpm test