laravel-tdd

Automate test-driven development for Laravel applications with PHPUnit and Pest.

1|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/TruCol270/salty-pickle --skill laravel-tdd-trucol270
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-tdd
Source: https://github.com/TruCol270/salty-pickle/tree/main/.claude-skills/laravel-tdd
Command: npx skills add https://github.com/TruCol270/salty-pickle --skill laravel-tdd-trucol270

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Laravel projects often struggle to implement consistent test-driven development, leading to flaky tests and slow feedback loops.

Core Features & Use Cases

  • Red-Green-Refactor cycle guidance for Laravel tests using PHPUnit and Pest.
  • Test Layer Guidance covering Unit, Feature, and Integration tests, with best practices for database testing, factories, and mocks.
  • Workflow Scaffolding including setup instructions, example test structures, and coverage targets to accelerate TDD adoption.

Quick Start

Create a simple unit test and run the test suite to begin the TDD cycle.

Frequently Asked Questions about laravel-tdd

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 and PHPUnit?

Test-driven development in Laravel uses the red-green-refactor cycle to build tested, reliable apps. This Skill automates TDD adoption by providing guidance on test organization, database strategies, and best practices using PHPUnit and Pest.

What is the best way to organize Laravel feature and integration tests?

The best way to organize Laravel tests is by separating them into Unit, Feature, and Integration test layers. This Skill provides test layer guidance covering best practices for database testing, model factories, and mocks to ensure a reliable testing structure.

How do I use model factories for database testing in Laravel TDD?

Model factories generate test data for database testing in Laravel TDD. This Skill outlines specific database strategies and best practices for implementing factories and mocks within your feature and integration tests.

Do I need both PHPUnit and Pest to run Laravel test suites?

You need PHPUnit and Pest configured in your Laravel environment to fully utilize this TDD workflow. The Skill requires both testing frameworks to outline red-green-refactor cycles and provide comprehensive test layer guidance.

Why are my Laravel database tests flaky during the refactoring phase?

Laravel database tests become flaky during refactoring due to inconsistent test data or improper database strategies. This Skill provides guidance on using model factories, mocks, and proper test organization to maintain reliable feedback loops.