# Test Writer

Generate comprehensive test suites for existing code

- Repository: https://github.com/vstorm-co/pydantic-deepagents (1111 stars)
- Category: Testing
- License: MIT
- Last updated: 2026-10-30
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add vstorm-co/pydantic-deepagents --skill test-writer -g -a claude-code -y`
Codex: `npx skills add vstorm-co/pydantic-deepagents --skill test-writer -g -a codex -y`
Cursor: `npx skills add vstorm-co/pydantic-deepagents --skill test-writer -g -a cursor -y`
Gemini CLI: `npx skills add vstorm-co/pydantic-deepagents --skill test-writer -g -a gemini-cli -y`

## Description

Generate comprehensive test suites for existing code

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# 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

