Summary
- Write focused tests for core user flows and critical business logic, testing behavior rather than implementation, with clear names and fast execution.
- Use this skill when writing unit tests, integration tests, or end-to-end tests.
- When testing critical user workflows and primary application features.
- When creating tests that focus on what code does rather than how it does it.
- When mocking external dependencies like databases, APIs, or file systems.
- When naming tests to clearly describe the scenario and expected outcome.
- When keeping tests fast and independent.
- When completing feature implementation and adding strategic tests at logical completion points.
- When working with test files or test frameworks.