Utility package for parsing and analyzing Playwright test reports.
npm install @empiricalrun/reporterUtility package for parsing and analyzing Playwright test reports.
- fetchReport(url) - Fetch a Playwright JSON report from a URL
- parseReportForAnalytics(report) - Parse a report for analytics data
- getFlattenedTestList(suites) - Flatten nested test suites into a flat list
- buildTestIdLookup(suites) - Build a lookup table from test IDs to test metadata
- deriveTestStatus(results) - Derive overall test status from results
- calculateEstimatedDuration(history, testIds) - Calculate estimated duration based on history
- JSONReport, JSONReportSpec, JSONReportSuite - Re-exported from @playwright/test/reporter
- FlattenedSpec - Flattened spec with nesting info
- TestResultStatus - "pass" | "fail" | "flaky" | "skip"
- ParsedTestResult - Parsed test result for analytics
- TestIdLookupEntry - Entry in the test ID lookup table
``sh``
pnpm build
pnpm test