Laravel TDD Workflow

•
215k
•

Implements rigorous Test-Driven Development (TDD) workflows for Laravel applications using PHPUnit and Pest.

This skill provides a comprehensive framework for building robust Laravel applications through Test-Driven Development. It guides users through the Red-Green-Refactor cycle, offering specific strategies for Unit, Feature, and Integration testing, database isolation using RefreshDatabase, and mocking external services with Laravel Fakes. Whether you are building REST APIs, Inertia-driven frontends, or complex backend jobs, this skill helps you maintain high code quality with a target of 80%+ test coverage and standardized implementation patterns.

주요 기능

01Standardized Red-Green-Refactor cycle guidance
02Specialized testing patterns for Laravel Sanctum and Inertia.js
03Comprehensive mocking for jobs, events, notifications, and HTTP
04214,597 GitHub stars
05Advanced database testing strategies and factory management
06Dual support for Pest and PHPUnit testing frameworks

사용 사례

01Testing complex database interactions and external service integrations
02Building new Laravel features or API endpoints with a test-first approach
03Refactoring legacy Laravel code while maintaining 80%+ test coverage