testing-best-practices
Installation
SKILL.md
Testing Best Practices
Quick Reference — When to Load What
| Working on… | Read |
|---|---|
| Proving the tests would catch a break — Stryker, mutmut, surviving mutants, mutation score | MUTATION-TESTING.md |
Testing Pyramid
| Layer | Share | Speed | Examples |
|---|---|---|---|
| Unit | ~70% | Fast (ms) | Pure logic, validators, utils |
| Integration | ~20% | Medium (s) | API endpoints, DB queries, service + repo |
| E2E | ~10% | Slow (10s+) | Login → checkout → confirmation |
Test: business logic, edge cases, error paths, public API contracts. Skip: framework internals, third-party lib behavior, private methods, trivial getters.