csspilot 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +755 -172
- package/dist/index.js +755 -172
- package/dist/skills/testpilot/manifest.yaml +1 -1
- package/dist/skills/testpilot/workflows/analyze-result.md +6 -5
- package/package.json +1 -1
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
1. 执行 `npx csspilot report` 生成报告。
|
|
4
4
|
2. 产物位于 `.testpilot/artifacts/runs/<run-id>/`:
|
|
5
|
-
- `report.json` —— 结构化结果,AI 优先读这个:`{ generatedAt, summary: { runId, status, totals, cases: [{ caseId, status, steps: [{ index, target, action, status, durationMs, error?, screenshot?, extracted? }] }] } }`
|
|
6
|
-
- `report.html` ——
|
|
7
|
-
- `screenshots/`、`traces/`、`logs/` —— 失败取证
|
|
8
|
-
3. 失败分析顺序:report.json 中失败步骤的 `error`
|
|
5
|
+
- `report.json` —— 结构化结果,AI 优先读这个:`{ generatedAt, summary: { runId, status, totals, cases: [{ caseId, status, steps: [{ index, target, action, status, durationMs, error?, screenshot?, extracted? }] }] }, history(最近 12 次运行趋势), failures(失败分类明细:category / caseId / message) }`;失败步骤的 `category` ∈ assert / element / adapter / env / timeout / other
|
|
6
|
+
- `report.html` —— 交互式报告(步骤树、失败分类筛选、历史趋势)
|
|
7
|
+
- `screenshots/`、`videos/`、`traces/`、`logs/` —— 失败取证
|
|
8
|
+
3. 失败分析顺序:report.json 中失败步骤的 `category` 与 `error` → 对应 `screenshot` → `logs/run.log` → `events.ndjson`。
|
|
9
9
|
4. 得出结论:
|
|
10
10
|
- Case 问题(locator 过期、步骤错误)→ 修改 Case,重新 validate → run
|
|
11
11
|
- 产品 bug → 停止修改 Case,向用户报告证据与结论
|
|
12
|
-
5.
|
|
12
|
+
5. 历史趋势中出现反复失败的用例(intermittent / flaky)要在结论中单独标注。
|
|
13
|
+
6. 不要在未分析 Evidence 的情况下盲目重跑或修改 Case。
|