Creating Feature Tests
Installation
SKILL.md
Creating Feature Tests
Create behavior-driven, fail-first feature tests for user-facing behaviors.
What you should do
-
Collect behavior scenario from user – Extract the core user-facing behavior to validate. If unspecified, analyze the codebase for primary user flows (e.g., authentication, form submission, navigation) and select a behavior that lacks clear test coverage.
-
Analyze feature dependencies and requirements – Examine the target feature's implementation to identify:
- External services, APIs, or databases required for the feature
- Authentication or authorization dependencies
- UI components, forms, or user interaction elements
- Configuration, environment variables, or feature flags
- Third-party integrations or external systems
-
Check for existing test coverage – Search the
tests/features/directory or equivalent for files or test cases related to the behavior. If the behavior is already tested, skip to Step 10 to optionally refactor, expand, or annotate the test.