# Testing Strategies

> This skill should be used for test coverage, test pyramid, unit/integration/E2E test design, TDD, BDD, mocking strategies, test doubles, test architecture Use when this capability is needed.

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

---


# Testing Strategies

Comprehensive test design for deployment readiness.

## Test Pyramid

```
    /  E2E  \       Few, slow, expensive
   /  Integ  \      Some, medium
  /   Unit    \     Many, fast, cheap
```

## Coverage Guidelines

| Level | Coverage | Focus |
|-------|----------|-------|
| Unit | 80%+ | Business logic |
| Integration | Key paths | APIs, DB |
| E2E | Critical flows | User journeys |

## Unit Test Patterns

- Test one thing per test
- Clear arrange/act/assert
- Mock external dependencies
- Fast execution (<1s each)

## Integration Test Patterns

- Test real dependencies
- Use test databases
- Clean up after tests
- Cover API contracts

## E2E Test Patterns

- Critical user journeys only
- Stable selectors
- Retry flaky network calls
- Parallel where possible

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

