laravel-tdd

Guide Test-Driven Development for Laravel applications using Pest PHP.

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/helmordev/ecom-app --skill laravel-tdd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-tdd
Source: https://github.com/helmordev/ecom-app/tree/main/.agents/skills/laravel-tdd
Command: npx skills add https://github.com/helmordev/ecom-app --skill laravel-tdd

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enforces Test-Driven Development (TDD) for Laravel applications, ensuring robust code by requiring tests to be written and passed before implementation.

Core Features & Use Cases

  • TDD Enforcement: Guides users through the Red-Green-Refactor cycle for Laravel development.
  • Laravel-Specific Patterns: Provides examples for database, authorization, and API testing within Laravel.
  • Use Case: When building a new feature like user registration in a Laravel app, use this skill to write the User registration test first, ensure it fails, then write the minimal code to make it pass, and finally refactor.

Quick Start

Use the laravel-tdd skill to write a failing test for a new Laravel controller.

Frequently Asked Questions about laravel-tdd

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I practice test-driven development in a Laravel application?

Test-driven development in Laravel involves writing a failing test first, then writing the minimal code to make it pass, and finally refactoring. This Skill enforces the Red-Green-Refactor cycle using Pest PHP.

What is the best way to test Laravel API endpoints and database migrations?

The best way to test Laravel API endpoints and migrations is by following TDD patterns. This Skill provides specific testing patterns for database, authorization, and API testing to ensure correctness before implementation.

Can I use Pest PHP for test-driven development in Laravel?

Yes, you can use Pest PHP for test-driven development in Laravel. This Skill specifically guides you through writing failing tests using Pest PHP before implementing your Laravel application code.

How do I start writing a failing test for a new Laravel controller feature?

To start writing a failing test for a new Laravel controller, use this Skill to define the expected behavior in a test file first. Ensure the test fails, then write the minimal controller code required to make it pass.

Does test-driven development work for Laravel authorization and database testing?

Test-driven development works effectively for Laravel authorization and database testing. This Skill covers specific patterns to write tests for database interactions, authorization rules, and API endpoints within Laravel.

Why should I write failing tests before implementation in Laravel?

Writing failing tests before implementation in Laravel ensures robust code quality and correctness. This TDD approach guarantees your tests are actually validating the new feature rather than passing accidentally.