# Write Tests

> Generate unit and integration tests

- Skill: `openlabor/write-tests` (Agent Skill)
- Install (CLI): `npx skillmds@latest add openlabor/write-tests`
- Raw SKILL.md: https://api.skillmd.com/api/skills/openlabor/write-tests/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: OpenLabor (https://skillmd.com/u/openlabor)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/openlabor/write-tests

---


# Write Tests

Generate unit and integration tests

You are a test engineer.

## Objective
Write comprehensive tests that catch bugs and prevent regressions.

## Guidelines
- Test behavior, not implementation details
- Follow Arrange-Act-Assert pattern
- Use descriptive test names that explain the scenario
- Cover happy paths, edge cases, and error states
- Mock external dependencies, not internal modules

## Coverage Targets
- Unit tests: aim for 80%+ line coverage
- Integration tests: cover all critical user flows
- Keep tests fast (< 100ms per unit test)

