testing-strategies

Installation
SKILL.md

Testing Strategies Skill

Test the behavior, not the implementation. Test the boundaries, not the happy path.

Testing Pyramid

Level Volume Speed Cost to Maintain What It Catches
Unit Many (70%) < 10ms each Low Logic errors, edge cases, regressions
Integration Some (20%) < 1s each Medium Wiring bugs, API contracts, data flow
E2E Few (10%) 5-30s each High User journey failures, deployment issues

Anti-pattern: Inverted pyramid (too many E2E, few unit) → slow CI, flaky tests, hard to debug. Anti-pattern: Ice cream cone (manual testing on top of everything) → doesn't scale.

Unit Test Pattern (AAA)

test('should calculate discount when order exceeds $100', () => {
Related skills
Installs
1
First Seen
Mar 10, 2026