laravel:tdd-with-pest

Guide Laravel test-first development with Pest or PHPUnit.

Updated Mar 30, 2026
One-click install
npx skills add https://github.com/Patkik/Multi-tenant-SaaS-Catering-V2 --skill laravel-tdd-with-pest-patkik
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: laravel:tdd-with-pest
Source: https://github.com/Patkik/Multi-tenant-SaaS-Catering-V2/tree/main/.agents/skills/tdd-with-pest
Command: npx skills add https://github.com/Patkik/Multi-tenant-SaaS-Catering-V2 --skill laravel-tdd-with-pest-patkik

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill guides developers to practice test-first development in Laravel using Pest or PHPUnit, ensuring fast feedback and maintainable codebases.

Core Features & Use Cases

  • TDD workflow guidance: write failing tests first, then implement minimal code to pass.
  • Supports Pest as default and PHPUnit as an alternative, with factory-backed feature tests for HTTP interactions.
  • Encourages deterministic tests and parallel execution to speed up CI.

Quick Start

Run the Pest or PHPUnit test suite in a Laravel project to see failures first and drive minimal implementation.

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 practice TDD in Laravel using Pest?▼

To practice TDD in Laravel using Pest, write a failing test first, then implement minimal code to pass. This Skill guides you through test-first development for feature and unit tests, leveraging factories for realistic data and deterministic outcomes.

Does this TDD workflow support PHPUnit as well as Pest?▼

Yes, this TDD workflow supports PHPUnit as an alternative to Pest. It guides Laravel developers through test-first development for HTTP controllers and services, allowing you to choose either testing framework while promoting deterministic tests.

How do I use factories for feature tests in Laravel?▼

You use factories in Laravel feature tests to generate realistic data for HTTP interactions. This Skill guides you to write factory-backed feature tests, ensuring your test-first development process yields deterministic tests with fast feedback.

Can I run Laravel tests in parallel to speed up CI?▼

Yes, you can run Laravel tests in parallel to speed up CI. This Skill encourages parallel execution during test-first development, ensuring fast feedback and maintainable codebases while satisfying the requirements of Pest or PHPUnit.

What is the best way to write deterministic tests for Laravel services?▼

The best way to write deterministic tests for Laravel services is through test-first development using Pest or PHPUnit. This Skill promotes deterministic tests by leveraging factories for realistic data during feature and unit testing.