laravel-tdd

Automate Laravel test-driven development workflows with PHPUnit and Pest.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/zh667/person-blog --skill laravel-tdd-zh667
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: laravel-tdd
Source: https://github.com/zh667/person-blog/tree/main/.cursor/skills/laravel-tdd
Command: npx skills add https://github.com/zh667/person-blog --skill laravel-tdd-zh667

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a structured, repeatable approach to developing Laravel applications using test-driven development with PHPUnit and Pest, ensuring reliable behavior, faster feedback, and maintainable test suites.

Core Features & Use Cases

  • Unit, feature, and integration tests for Laravel apps using PHPUnit and Pest
  • Factories and database testing to create deterministic test data and isolation
  • Guidance on Pest vs PHPUnit to align with project standards and test scope

Quick Start

Create a new Laravel test file and run phpunit to verify tests pass

Frequently Asked Questions about laravel-tdd

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

FAQPage Schema
How do I set up test-driven development workflows for Laravel applications?▼

To set up test-driven development for Laravel applications, you can automate workflows using PHPUnit and Pest across unit, feature, and integration tests with factories and database migrations to ensure reliable behavior and maintainable test suites.

Should I use Pest or PHPUnit for my Laravel testing suite?▼

Choosing between Pest and PHPUnit for Laravel testing depends on your project standards and test scope; this approach enforces best practices to select the right framework, ensuring your test suites align with your specific development requirements.

How do I isolate database tests and create deterministic data in Laravel?▼

To isolate database tests and create deterministic data in Laravel, use factories and database migrations within your test-driven development workflow to achieve reliable, maintainable test suites without data contamination.

What's the best way to structure unit, feature, and integration tests in Laravel?▼

The best way to structure unit, feature, and integration tests in Laravel is applying a repeatable, structured approach using PHPUnit and Pest, ensuring faster feedback and reliable behavior across all test types.

Does test-driven development with Pest work with existing Laravel migrations?▼

Yes, test-driven development with Pest works with existing Laravel migrations by integrating database migrations and test isolation to achieve deterministic test data and reliable behavior for your application.

Why are my Laravel tests failing to maintain reliable behavior across test runs?▼

Laravel tests fail to maintain reliable behavior across runs due to poor test isolation; applying structured test-driven development with factories and database migrations ensures deterministic data and maintainable test suites.