laravel-tdd

Implement test-driven development for Laravel applications using PHPUnit and Pest.

12|4|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/TeiNam/kiro-with-harness --skill laravel-tdd-teinam
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-tdd
Source: https://github.com/TeiNam/kiro-with-harness/tree/main/skills/laravel-tdd
Command: npx skills add https://github.com/TeiNam/kiro-with-harness --skill laravel-tdd-teinam

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires phpunit, pest, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers implement Test-Driven Development (TDD) for Laravel applications, ensuring robust code quality and functionality.

Core Features & Use Cases

  • Test-Driven Development: Automates the creation of tests before writing code, promoting better code design and maintenance.
  • PHPUnit and Pest Support: Integrates with both PHPUnit and Pest for comprehensive testing.
  • Coverage Targets: Encourages 80%+ test coverage for unit and feature tests.
  • Use Case: Ideal for new Laravel features, bug fixes, or refactoring, providing a structured approach to testing Eloquent models, policies, jobs, and notifications.

Quick Start

Run the laravel-tdd skill to set up TDD for your Laravel project.

Frequently Asked Questions about laravel-tdd

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

FAQPage Schema
How do I implement test-driven development in Laravel?

Automated test creation for Laravel applications is set up before writing code, focusing on unit and feature testing for models, policies, jobs, and notifications to ensure robust code quality and functionality.

Does this approach support both PHPUnit and Pest for Laravel testing?

Yes, Laravel TDD supports both PHPUnit and Pest, providing comprehensive testing framework integration and automated test setup for your application's unit and feature tests.

What is the recommended test coverage target for a Laravel TDD workflow?

The recommended test coverage target for a Laravel TDD workflow is 80% or higher for unit and feature tests, ensuring robust code quality across new features, bug fixes, and refactoring.

When should I use TDD for my Laravel applications?

Use TDD for Laravel applications when developing new features, fixing bugs, or refactoring existing code, providing a structured approach to testing Eloquent models, policies, jobs, and notifications.

How do I set up automated testing for Laravel Eloquent models and jobs?

Set up automated testing for Laravel Eloquent models and jobs by running the TDD skill to configure PHPUnit and Pest, establishing a structured test environment targeting robust code quality and functionality.