来源信息
- 仓库
- vstorm-co/pydantic-deepagents
- 最近来源活动
- 2026年3月30日 10:48
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 1,076
- 分支
- 134
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- test-writer
- description
- Generate comprehensive test suites for existing code
- tags
- ["testing","code-quality"]
- version
- 1.0.0
# Test Writer
Generate comprehensive tests for the target code.
## Process
1. Read the source code to understand all public functions/methods
2. Identify the testing framework already used in the project (pytest, unittest, etc.)
3. Follow existing test patterns and conventions in the project
4. Write tests covering all categories below
## Coverage Strategy
### Happy Path
- Normal inputs with expected outputs
- All public methods/functions
### Edge Cases
- Empty inputs (empty string, empty list, None)
- Boundary values (0, -1, max int)
- Single element collections
### Error Cases
- Invalid input types
- Missing required arguments
- Network/IO failures (mock external calls)
### Integration
- Multiple functions working together
- State changes across calls
## Guidelines
- One test function per behavior, not per method
- Descriptive test names: `test_<what>_<condition>_<expected>`
- Use fixtures for shared setup
- Mock external dependencies (APIs, databases, filesystem)
- Assert specific values, not just truthiness
- Test both return values and side effects
在 GitHub 查看