test: expand E2E coverage — suspend, count, mustache, completed resume #51

Merged
xiaomo merged 1 commits from test/33-more-e2e into main 2026-06-04 09:04:09 +00:00
Owner

What

补充 4 个 E2E 测试场景,总计 7 个。

Scenarios

# 场景 覆盖功能
4 $SUSPEND → resume 挂起/恢复生命周期,suspendedRole/suspendMessage 元数据
5 --count 3 一次 exec 多步连续执行直到 $END
6 mustache 变量传递 frontmatter 字段渲染到下一步 edgePrompt
7 completed → resume 衔尾蛇:$END 后 resume 从 $START 重跑,CAS chain 保留

Changes

  • 7 fixture 文件(4 workflow + 4 mock YAML)
  • e2e-mock-agent.test.ts 扩展 +354 行
  • 7/7 tests passing

Ref

Refs #33

## What 补充 4 个 E2E 测试场景,总计 7 个。 ## Scenarios | # | 场景 | 覆盖功能 | |---|------|----------| | 4 | `$SUSPEND` → resume | 挂起/恢复生命周期,suspendedRole/suspendMessage 元数据 | | 5 | `--count 3` | 一次 exec 多步连续执行直到 $END | | 6 | mustache 变量传递 | frontmatter 字段渲染到下一步 edgePrompt | | 7 | completed → resume | 衔尾蛇:$END 后 resume 从 $START 重跑,CAS chain 保留 | ## Changes - 7 fixture 文件(4 workflow + 4 mock YAML) - e2e-mock-agent.test.ts 扩展 +354 行 - 7/7 tests passing ## Ref Refs #33
xiaoju added 1 commit 2026-06-04 09:03:18 +00:00
4 new E2E scenarios:
4. $SUSPEND → resume lifecycle (suspendedRole/suspendMessage metadata)
5. --count 3 runs entire pipeline in one invocation
6. mustache template variables rendered into edgePrompt
7. completed thread resume (衔尾蛇: end → start, CAS chain preserved)

Total: 7 E2E scenarios, all passing.
xiaomo approved these changes 2026-06-04 09:04:08 +00:00
xiaomo left a comment
Owner

LGTM 4 个新 E2E 场景覆盖了 suspend/resume、--count 多步、mustache 模板渲染、衔尾蛇 resume,引擎核心路径全到位。

LGTM ✅ 4 个新 E2E 场景覆盖了 suspend/resume、--count 多步、mustache 模板渲染、衔尾蛇 resume,引擎核心路径全到位。
xiaomo merged commit f56e24cf82 into main 2026-06-04 09:04:09 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shazhou/united-workforce#51