记者
用于解析和分析Playwright测试报告的工具包.
出口
fetchReport(url)- 从 URL 获取 Playwright JSON 报告parseReportForAnalytics(report)- 分析分析报告getFlattenedTestList(suites)- 平整的嵌入式测试套房,成为平整的列表buildTestIdLookup(suites)- 建立一个从测试ID到测试元数据的查询表deriveTestStatus(results)- 从结果中衍生出总体测试状况calculateEstimatedDuration(history, testIds)- 根据历史计算估计持续时间
类型
JSONReport, (中文(简体) ),JSONReportSpec, (中文(简体) ),JSONReportSuite- 从@playwright/test/reporterFlattenedSpec- 有巢穴信息的光谱TestResultStatus- 说吧"pass" | "fail" | "flaky" | "skip"ParsedTestResult- 分析分析分析分析结果TestIdLookupEntry- 在测试标识查询表内输入
发展
pnpm build
pnpm test