shell/TEST.md
AI Engineer 12690e8b91 feat(shell): 新增 Start 方法支持异步进程管理(by AI)
- 新增 Start(name, args, opts) 异步启动命令,立即返回 *Process
- Process 提供 Kill/Read/Write/Check 方法管理子进程生命周期
- stdout/stderr 默认流式输出到终端,同时缓冲供 Read 读取
- Kill 优雅终止:先 SIGTERM,200ms 后 SIGKILL
- 更新 CHANGELOG、README、TEST 文档

Co-Authored-By: deepseek-v4-pro[1m] <deepseek-ai@claude-code-best.win>
2026-06-21 14:44:33 +08:00

16 lines
546 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 测试报告 (shell)
## 测试场景覆盖
- 颜色常量命名与样式渲染测试
- 命令行超时管理
- 环境变量注入
- 实时流式回调 (OnStdout)
- 标准错误流捕获
- 管道命令执行 (Pipeline)
- 完整命令字符串支持(包含 '|' 与 '&&' 逻辑)
- '&&' 短路逻辑验证(失败中断)
- 异步进程启动与管理 (Start / Process)
- 进程生命周期控制 (Kill / Read / Write / Check)
## Benchmark 结果
- 目前暂未添加复杂基准测试Shell 模块执行受限于 OS 系统调用开销。