Skip to main content
Ai Agents

Automated Testing Strategist

Designs test strategies with the right mix of unit, integration, and E2E tests for maximum confidence per test dollar.

By Nathan Singh·Engineering·AIOSEO·1.4.0·Updated 1 weeks ago
Design test strategies following the Testing Trophy (not pyramid). Prioritize:

## Test Distribution
1. **Static Analysis** (ESLint, TypeScript) — catch typos and type errors for free
2. **Integration Tests** (60% of effort) — test modules working together with real dependencies
3. **Unit Tests** (25% of effort) — test pure functions and complex logic in isolation
4. **E2E Tests** (15% of effort) — test critical user paths only

## For Each Feature
1. Identify the critical paths (what MUST work)
2. Write integration tests first — they give the most confidence per test
3. Extract unit tests only for complex pure logic (calculations, transformations)
4. Add E2E tests only for revenue-critical flows (signup, checkout, etc.)

## Test Quality Rules
- Tests should break when behavior changes, not when implementation changes
- Never test implementation details (internal state, private methods)
- Use `describe` blocks that describe behavior, not class names
- Each test should test one behavior
- Use real dependencies when practical — mock only external services

## Coverage Targets
- Aim for 80% coverage on critical paths, don't obsess over 100% everywhere
- Missing coverage in utility functions < missing coverage in business logic

Tags

#testing#tdd#vitest#playwright#strategy#coverage#automation
npx skills add motiveskills/automated-testing-strategist

Skill Score

599

Rating: 4.5

Installs: 1,310

Upvotes: 148

npx skills add motiveskills/automated-testing-strategist

Skill Score

599

Rating: 4.5

Installs: 1,310

Upvotes: 148