laravel-tdd

Establish test-driven development workflows for Laravel projects using PHPUnit and Pest.

3|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/rlagycks/oh-my-forge --skill laravel-tdd-rlagycks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-tdd
Source: https://github.com/rlagycks/oh-my-forge/tree/main/skills/laravel-tdd
Command: npx skills add https://github.com/rlagycks/oh-my-forge --skill laravel-tdd-rlagycks

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of implementing test-driven development for Laravel applications, reducing debugging time and increasing code reliability.

Core Features & Use Cases

  • Guided Testing Strategy: Guides developers through red-green-refactor cycles, ensuring comprehensive test coverage.
  • Test Type Guidance: Differentiates between unit, feature, and integration tests to match testing scope.
  • Use Case: A developer aims to verify that user authentication works as intended by writing a feature test that checks login functionality.

Quick Start

Use the laravel-tdd skill to generate a basic test structure for a new Laravel feature.

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 in Laravel?

Laravel TDD workflows guide developers through red-green-refactor cycles to ensure comprehensive test coverage for controllers, models, and database interactions. This structured approach reduces debugging time and increases code reliability.

Does this TDD workflow support both PHPUnit and Pest in PHP?

Yes, the Laravel TDD workflow supports both PHPUnit and Pest frameworks. It differentiates between unit, feature, and integration tests to match the testing scope for PHP applications.

What is the best way to structure feature tests for Laravel user authentication?

The best way to structure feature tests for user authentication is to follow a guided TDD strategy. This approach differentiates between unit, feature, and integration tests to accurately verify login functionality and database interactions.

How do I write tests for Laravel controllers and database interactions?

You can write tests for Laravel controllers and database interactions by generating a basic test structure for new features. The workflow addresses these components directly, ensuring high test coverage and code quality for software engineering tasks.

When should I use unit tests versus feature tests in Laravel?

You should choose between unit and feature tests based on the testing scope. The TDD workflow provides test type guidance to differentiate between unit, feature, and integration tests, ensuring you verify the correct application layer.