# Testing

> Write comprehensive tests Use when this capability is needed.

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

---

When writing tests:

1. Use descriptive names: "should [behavior] when [condition]"
2. Follow Arrange-Act-Assert (AAA) pattern
3. Test edge cases: null, empty, boundary values
4. Mock external dependencies appropriately
5. Prefer integration tests for critical paths
6. Aim for 80% coverage minimum
7. Use test fixtures for complex data setup
8. Test error scenarios and edge cases
9. Keep tests independent and isolated
10. Use parameterized tests for similar scenarios

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/agricidaniel) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-11 -->

