What problem does it solve?
This Skill helps developers overcome the challenges of writing high-quality tests, effectively reviewing existing ones, and efficiently debugging failures. It ensures code reliability and promotes adherence to best practices, saving time and reducing complexity in the development lifecycle.
Core Features & Use Cases
- Test Creation Workflow: Guides you through analyzing target code, planning test strategies (like AAA pattern), and writing new tests incrementally. Use it when you need to add new features or fix bugs and want to ensure proper test coverage.
- Test Review & Refactoring: Provides a comprehensive checklist to review existing test code, identify issues such as excessive mocking, lack of independence, or test-bypassing patterns. Ideal for improving code quality and maintainability.
- Debugging Failed Tests: Offers a structured approach to diagnose and resolve test failures, helping you distinguish between actual implementation bugs and issues within the test itself. Use it when your CI/CD pipeline fails or a local test run shows unexpected results.
Quick Start
Help me write unit tests for the new user authentication module, focusing on happy paths and edge cases.