user.md
825 Bytes
User: test-bot
Target Users
- 需要测试执行的 Agent
- 需要代码验证的开发者
- 需要任务执行的自动化流程
User Needs
| 需求 | 描述 |
|---|---|
| 测试执行 | 运行单元测试、集成测试、E2E 测试 |
| 代码验证 | 验证代码变更是否正确 |
| 脚本执行 | 执行自定义脚本 |
| 结果报告 | 输出结构化测试报告 |
Output Format
{
"status": "passed|failed|error",
"tests_run": 0,
"tests_passed": 0,
"tests_failed": 0,
"duration_ms": 0,
"output": "...",
"errors": []
}
Usage Examples
# 运行单元测试
node test-bot.js --type unit --target ./src
# 运行集成测试
node test-bot.js --type integration --target ./tests/integration
# 执行自定义脚本
node test-bot.js --script ./custom-test.js