Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
Phase 1 baseline + T1 Hands functional audit: - Desktop vitest: 174/185 passed (chatStore refactoring) - Admin vitest: 36/71 passed (API mock issues) - Cargo check: 0 errors - T1 Hands: 18/23 TCs executed, health 58→68 (+10) - Key findings: M3-01/M3-06 fixed, M3-02/M3-04 unfixed - New P1: LLM API concurrent DATABASE_ERROR
1.9 KiB
1.9 KiB
ZCLAW 上线前功能审计 — 基线测试结果
执行日期: 2026-04-05 | 环境: Windows 11, PostgreSQL + SaaS + Tauri 已启动
自动化测试基线
cargo test --workspace
- 状态: ⚠️ 部分完成
- 问题: zclaw-saas.exe 被运行中的 SaaS 后端锁定,无法重新编译
- 解决方案: 排除 zclaw-saas 重跑,结果待补充
- cargo check: ✅ 通过(0 error,仅 warnings)
desktop vitest (174/185 passed)
- 通过: 174
- 失败: 10
- 跳过: 1
- 失败原因: 全部在
chatStore.test.ts,因 ChatStore 4-sub-store 重构后测试未同步更新 - 失败测试:
chatStore>createConversation相关 3 个chatStore>sendMessage相关 4 个chatStore>conversations相关 3 个
admin-v2 vitest (36/71 passed)
- 通过: 36
- 失败: 35
- 失败分布:
- authStore.test.ts: 6/8 failed (localStorage mock 问题)
- request.test.ts: 2/7 failed (Authorization header / 401 refresh)
- accountStore.test.ts: 多个 CRUD 测试失败
- 其他页面测试: relay, usage, prompt 等
环境验证
| 项目 | 状态 | 备注 |
|---|---|---|
| PostgreSQL | ✅ 运行中 | Docker 容器 |
| SaaS 后端 | ✅ 运行中 | 0.0.0.0:8080 |
| Tauri 桌面端 | ✅ 运行中 | http://localhost:1420/ |
| tauri-mcp | ✅ 连接正常 | 可查询/交互 |
| LLM Provider | ✅ 可用 | glm-4-flash (GLM) |
已知基线缺陷(非本轮引入)
- desktop chatStore 测试: ChatStore 拆分为 4 个 sub-store 后测试未更新
- admin authStore 测试: jsdom 环境下 localStorage API 兼容问题
- admin 多页面测试: 依赖真实 API 端点,vitest 环境无法访问
T1 Hands 测试已完成
- 通过: 11/18 执行用例
- 健康度: 58 → 68 (+10)
- 新发现 P1: 2 个 (LLM 并发 + Browser Hand)