What problem does it solve?
This Skill eliminates the friction of setting up and maintaining high-quality, high-coverage test suites for Laravel applications, reducing production bugs and cutting down time spent on manual regression testing.
Core Features & Use Cases
- Multi-framework TDD support: Works with both PHPUnit and Pest, adapting to existing project standards or defaulting to Pest for new codebases.
- Comprehensive test layer guidance: Covers unit, feature, and integration tests for Eloquent models, HTTP endpoints, authentication, policies, jobs, and notifications.
- Use Case: When building a new Laravel API endpoint, use this Skill to follow the red-green-refactor cycle, write failing tests first, implement minimal logic to pass, and refactor while keeping tests green to meet 80%+ coverage targets.
Quick Start
Use the laravel-tdd skill to write a passing Pest feature test for a new Laravel API endpoint that creates a project resource with authentication and validation checks.