unit-testing
Installation
SKILL.md
Unit Testing Skill
Framework-agnostic unit testing best practices. Apply these patterns regardless of language or test runner.
Core Principles
- Test behavior, not implementation — tests should survive internal refactoring
- One behavior per test — not one method per test
- AAA structure — Arrange / Act / Assert, always
- Prefer fakes and spies over mocks — less coupling to mocking frameworks
- Name tests as readable sentences — a non-developer should understand the scenario