Implements robust test-driven development practices for Laravel applications using PHPUnit and Pest to ensure high code quality and coverage.
The Laravel TDD Workflow skill equips Claude with specialized knowledge to execute a strict Red-Green-Refactor cycle within the Laravel ecosystem. It provides expert guidance on structuring unit, feature, and integration tests while leveraging Laravel's powerful testing suite, including Eloquent factories, service fakes, and database isolation strategies. Whether you are building new API endpoints, refactoring complex business logic, or ensuring secure authentication with Sanctum, this skill helps maintain a deterministic codebase with a target of 80%+ test coverage.
Características Principales
01Comprehensive mocking for queues, mail, and external HTTP services
02Advanced database testing using RefreshDatabase and factories
03Dual-support for Pest and PHPUnit testing frameworks
04Specialized helpers for testing Laravel Sanctum and Inertia.js