[bug] 大量关键模块无测试覆盖

Open
#91 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
node.js, typescript
Domain
testing-qa

Research direction

Start by running pnpm test:coverage and reviewing vitest.config.ts. Work through the listed modules, including packages/core/src/agent/agent-team.ts, harness.ts, runtime.ts, the native shell and file tools, coding-bridge.ts, and conversation-memory.ts, then add focused unit tests. Done means these modules have meaningful basic coverage and are included in the coverage configuration.

Written by the indexing model from the issue text.

Description

status/needs-triage type/bug
step-realtime-cli 版本

1.0.0

Node 版本 & OS

Node 24.16.0 / Linux (Fedora 44)

复现步骤
pnpm test:coverage
# 观察 coverage 报告

以下核心模块完全没有测试文件(或仅有极少量测试):

文件 行数 测试文件 覆盖风险
packages/core/src/agent/agent-team.ts 1,455 极高
packages/core/src/agent/harness.ts 673
packages/core/src/tools/runtime.ts 900
packages/core/src/tools/native-impls/shell-tools.ts 403
packages/core/src/tools/native-impls/file-tools.ts 317
extensions/realtime-voice/src/bridge/coding-bridge.ts 656
packages/core/src/agent/conversation-memory.ts 2,346 仅 183 行 极高
期望行为

关键模块应有基础单元测试覆盖,并在 vitest.config.ts 的 coverage include 列表中

实际行为

上述模块不在 coverage include 列表中或完全没有测试文件

日志 / 堆栈

截图(可选)

No response

自检
  • 我已搜索 existing issues,确认这不是重复问题
  • 我已阅读 CONTRIBUTING.md
Dominant language
TypeScript
Stars
54
Forks
20
Avg merge
2h 58m
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from stepfun-ai/Step-Code

All issues in stepfun-ai/Step-Code

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.