[bug] 大量关键模块无测试覆盖
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
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from stepfun-ai/Step-Code
-
status/needs-triage type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
stepfun-ai/Step-Code#85 · 1 comment ·
-
status/needs-triage type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
stepfun-ai/Step-Code#84 ·
-
status/needs-triage type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
stepfun-ai/Step-Code#83 ·
-
status/needs-triage type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
stepfun-ai/Step-Code#81 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
stepfun-ai/Step-Code#80 ·
All issues in stepfun-ai/Step-Code
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
area:tools bug good first issue help wanted priority:P2
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
TaewoooPark/Motifcode#14 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
newrelic-experimental/preflight#793 · 1 comment ·
-
bug 🐞
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
[Bounty proposal] fix(web): memory insights count an evening memory on the next day ($25 proposed) Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
BasedHardware/omi#15320 ·