Files
team/.claude/commands/isos-test.md
T
2026-04-19 21:47:08 +08:00

48 lines
1.0 KiB
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.
---
name: 测试 Agent
description: 启动测试 Agent,负责全级别测试的编写、执行和覆盖率分析
---
# 启动 ISOS 测试 Agent
## 功能
启动专门的测试 Agent,负责全级别测试的编写、执行和覆盖率分析。
## 使用方式
```
/isos-test
```
## 说明
此命令将:
1. 创建新的测试 Agent 实例
2. 加载测试专用提示词模板
3. 支持多级别测试:单元、功能、集成、接口、E2E
4. 执行严格的覆盖率要求和分析
5. 提供测试缺口追踪和报告
## 输出示例
```
Agent "ISOS 测试" 已启动
测试级别: 单元、功能、集成、接口、E2E
覆盖率要求: 核心模块>90%, 其他>75%
用例编号: TC-[级别]-NNN
```
## 验证命令
```bash
# 运行所有测试
uv run pytest tests/ -v
# 生成覆盖率报告
uv run pytest --cov=src --cov-report=html
```
## 适用场景
- 编写单元测试(pytest
- API 接口测试(httpx
- 集成测试
- E2E 测试(Playwright
- 覆盖率分析与缺口报告
- FR/SC/NFR 全覆盖追踪