laravel:tdd-with-pest

Facilitate TDD for Laravel with Pest or PHPUnit and parallel tests.

1|Updated Sep 22, 2025
One-click install
npx skills add https://github.com/meistro57/chat_bridge --skill laravel-tdd-with-pest-meistro57
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel:tdd-with-pest
Source: https://github.com/meistro57/chat_bridge/tree/main/.claude/skills/tdd-with-pest
Command: npx skills add https://github.com/meistro57/chat_bridge --skill laravel-tdd-with-pest-meistro57

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the Test-Driven Development (TDD) process for Laravel applications, ensuring robust code through a disciplined RED-GREEN-REFACTOR cycle.

Core Features & Use Cases

  • Test-First Development: Encourages writing tests before implementation to guide development.
  • Efficient Testing: Utilizes parallel test runners and model factories for speed and realism.
  • Use Case: When developing a new user registration feature, you would first write a test to ensure an empty email is rejected, then implement the minimal code to pass, and finally refactor for clarity.

Quick Start

Execute your Laravel tests in parallel using the provided Sail command.

Frequently Asked Questions about laravel:tdd-with-pest

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

FAQPage Schema
How do I start test-driven development in Laravel using Pest?

Test-driven development in Laravel with Pest begins by writing a failing test to verify expected failures before implementation. You then write minimal code to pass the test and finally refactor for clarity and maintainability.

What is the RED-GREEN-REFACTOR cycle for PHP testing?

The RED-GREEN-REFACTOR cycle is a test-driven development process where you first write a failing test (RED), implement minimal code to pass the test (GREEN), and then refactor the code for clarity without changing behavior.

Can I run Laravel feature tests and HTTP interactions in parallel?

Yes, you can execute Laravel feature tests and HTTP interactions in parallel using the Sail command. This efficient testing approach utilizes parallel test runners to speed up the verification process.

Does test-driven development with Pest support Laravel model factories?

Yes, test-driven development with Pest supports Laravel model factories to provide speed and realism. These factories help generate test data for feature tests and HTTP interaction verifications.

Why should I verify test failures before implementing Laravel application code?

Verifying test failures before implementing Laravel application code ensures code quality and maintainability. This test-first development approach validates that your tests actually check the intended logic before you write the implementation.

What is the best way to refactor code after passing PHPUnit tests?

The best way to refactor code after passing PHPUnit tests is to improve code clarity and structure while preserving the verified behavior. This step completes the RED-GREEN-REFACTOR cycle to ensure robust application code.