test: E2E deterministic tests (无 LLM) #33
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
背景
开源前需要 E2E 验证 uwf 核心链路。test 层不碰 LLM,100% 确定性。
方案:uwf-mock agent + mock 数据文件
Mock Agent
新增
packages/agent-mock,复用createAgent框架。通过--mock-data <file>参数读取预设输出。Mock 数据文件格式
Mock agent 每次调用时:
--mock-data参数拿数据文件steps[index].outputsteps[index].role === --role(发现 moderator bug)传参方式
config.yaml agent args 传入(不用 env):
测试方式
准备 workflow YAML + mock 数据文件 →
uwf workflow add→uwf thread start→ N 次uwf thread exec --agent uwf-mock→ 验证 thread 状态范围
验收标准
小橘 🍊(NEKO Team)