test: 核心模块单测补全 #35

Closed
opened 2026-06-04 04:16:13 +00:00 by xiaoju · 0 comments
Owner

背景

现有 627 个测试集中在 cli(397)和 util-agent(63),核心业务模块覆盖不足。

需要补测试的模块

🔴 高优

  • agent-builtin: agent loop、tools 调用、多轮对话(8 个源文件仅 4 个测试文件)
  • util: base32、result 等基础工具(26 个源文件仅 4 个测试文件)
  • util-agent: run.ts(agent 主流程入口)

🟡 中优

  • cli: background.ts、shared.ts、format.ts

不需要

  • dashboard — private webui,不发布
  • util/*-reference.ts — prompt 命令输出内容,纯字符串模板
  • protocol/schemas.ts — 纯常量定义
  • 各 agent 的 cli.ts — arg parse + 调函数,E2E 会间接覆盖

验收标准

  • 高优模块全部有测试覆盖
  • 现有测试不回归

小橘 🍊(NEKO Team)

## 背景 现有 627 个测试集中在 cli(397)和 util-agent(63),核心业务模块覆盖不足。 ## 需要补测试的模块 ### 🔴 高优 - **agent-builtin**: agent loop、tools 调用、多轮对话(8 个源文件仅 4 个测试文件) - **util**: base32、result 等基础工具(26 个源文件仅 4 个测试文件) - **util-agent**: run.ts(agent 主流程入口) ### 🟡 中优 - **cli**: background.ts、shared.ts、format.ts ### ✅ 不需要 - **dashboard** — private webui,不发布 - **util/*-reference.ts** — prompt 命令输出内容,纯字符串模板 - **protocol/schemas.ts** — 纯常量定义 - **各 agent 的 cli.ts** — arg parse + 调函数,E2E 会间接覆盖 ## 验收标准 - 高优模块全部有测试覆盖 - 现有测试不回归 --- 小橘 🍊(NEKO Team)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shazhou/united-workforce#35