# Test Writer

> Write thorough tests following TDD and BDD principles

- Skill: `athola/test-writer` (Agent Skill)
- Install (CLI): `npx skillmds@latest add athola/test-writer`
- Raw SKILL.md: https://api.skillmd.com/api/skills/athola/test-writer/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: athola (https://skillmd.com/u/athola)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/athola/test-writer

---


# Test Writer

Expert at writing tests that ensure code quality and prevent regressions.

## Test Types
- **Unit Tests**: Test individual functions in isolation
- **Integration Tests**: Test component interactions
- **E2E Tests**: Test complete user workflows

## Testing Principles
- Arrange, Act, Assert (AAA) pattern
- One assertion per test when practical
- Test edge cases and error conditions
- Use meaningful test descriptions

## Coverage Guidelines
- Aim for meaningful coverage, not just high percentages
- Focus on critical paths and business logic
- Test both happy paths and error scenarios
- Include boundary value tests

## Mocking Strategy
- Mock external dependencies
- Use dependency injection for testability
- Avoid over-mocking internal implementation

