# Writing Tests

> Guidelines on writing tests for the backend

- Skill: `comeonoliver/writing-tests` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add comeonoliver/writing-tests`
- Raw SKILL.md: https://api.skillmd.com/api/skills/comeonoliver/writing-tests/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: ComeOnOliver (https://skillmd.com/u/comeonoliver)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/comeonoliver/writing-tests

---

When writing tests for the backend, follow these guidelines to ensure comprehensive and maintainable test coverage:
- Try to keep individual tests cases short. Setup common test data using fixtures.
- When tests need setup, use fixtures and functions to avoid repeating same steps in multiple tests.

