laravel-tdd

Automate test creation for Laravel code with PHPUnit and Pest.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill facilitates test-driven development in Laravel applications, streamlining the process of writing and executing tests for PHP code, models, policies, jobs, and notifications.

Core Features & Use Cases

  • Test-Driven Development: Automates the creation of tests for Laravel applications, ensuring code quality and functionality.
  • PHPUnit and Pest Integration: Provides support for both PHPUnit and Pest testing frameworks, allowing for flexibility in testing strategies.
  • Database Testing: Offers strategies for testing database interactions, including in-memory databases and transactional rollbacks.
  • Feature Testing: Enables testing of HTTP endpoints, authentication, validation, and response structures.
  • Use Case: When developing a new feature in Laravel, this Skill can be used to create comprehensive tests that cover various aspects of the application.

Quick Start

Run the tests for your Laravel application with the command: php artisan test.

Frequently Asked Questions about laravel-tdd

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

FAQPage Schema
How do I automate test creation for Laravel models and policies?

You can automate test creation for Laravel models and policies by using a test-driven development skill that integrates with PHPUnit and Pest to generate comprehensive test suites for your PHP code.

Does this Laravel testing approach support both PHPUnit and Pest?

Yes, this Laravel testing approach supports both PHPUnit and Pest, providing flexibility in your testing strategies while automating test execution for jobs, notifications, and HTTP endpoints.

How do I test database interactions in Laravel without affecting my live data?

You can test database interactions safely by utilizing in-memory databases and transactional rollbacks, which ensure that your test-driven development process does not persist test data to your live database.

What is the best way to run feature tests for Laravel HTTP endpoints and validation?

The best way to run feature tests for Laravel HTTP endpoints and validation is to use an integrated testing environment that automates checks for authentication, response structures, and validation rules.

Can I use this test-driven development workflow for testing Laravel jobs and notifications?

Yes, you can use this test-driven development workflow to automatically create and execute tests for Laravel jobs and notifications, ensuring code quality and functionality across your application.