Skip to content
FunCoding

test-writer

Generate comprehensive test suites for existing code

Star
1,081
License
MIT
Last commit
Oct 6, 2026

pydantic_deep/bundled_skills/test-writer/SKILL.md

View on GitHub

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

Similar Skills

test-driven-development

OBobra/superpowers298k2,631 new stars in the last 7 days

migrate-to-shoehorn

MAmattpocock/skills288k10,178 new stars in the last 7 days

agent-runtime-gateway-smoke-test

AFaffaan-m/ECC278k4,046 new stars in the last 7 days

Featured

accessibility

Audit accessibility on Web, iOS, and Android to meet WCAG 2.2, with keyboard navigation and screen-reader support.

AFaffaan-m/ECC278k4,046 new stars in the last 7 days

ai-regression-testing

AFaffaan-m/ECC278k4,046 new stars in the last 7 days

Official

firecrawl-build-interact

FIfirecrawl/firecrawl191k2,010 new stars in the last 7 days