pest-testing

Create and execute Pest PHP tests for Laravel applications.

150|51|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/AratKruglik/claude-laravel --skill pest-testing-aratkruglik
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pest-testing
Source: https://github.com/AratKruglik/claude-laravel/tree/main/.claude/skills/pest-testing
Command: npx skills add https://github.com/AratKruglik/claude-laravel --skill pest-testing-aratkruglik

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of writing, running, and debugging tests for Laravel applications using the Pest PHP framework, ensuring code quality and reliability.

Core Features & Use Cases

  • Test Creation: Generate unit, feature, and browser tests with clear structure.
  • Assertion Guidance: Use specific assertions for clearer test outcomes.
  • Debugging Assistance: Helps identify and resolve test failures efficiently.
  • Use Case: When developing a new feature, use this skill to create comprehensive Pest tests that cover all aspects of the functionality, from API endpoints to frontend interactions.

Quick Start

Use the pest-testing skill to create a new feature test for the user authentication flow.

Frequently Asked Questions about pest-testing

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

FAQPage Schema
How do I write feature tests for Laravel applications using Pest PHP?

Pest PHP is a testing framework for PHP that streamlines writing unit, feature, and browser tests for Laravel applications. It provides clear assertion guidance and debugging assistance to ensure code reliability.

How do I run unit and feature tests in Laravel using Pest?

You can generate unit, feature, and browser tests with a clear structure using Pest PHP. It supports architecture testing scenarios and offers guidance on specific assertions, mocking, and datasets for comprehensive coverage.

Does Pest PHP support browser testing and smoke testing for Laravel?

Yes, Pest PHP supports browser testing and smoke testing for Laravel applications. It offers specific best practices and testing policies for these scenarios to ensure application stability and reliability.

What is the best way to mock data and use datasets in Pest PHP tests?

The best way to mock data and use datasets in Pest PHP tests is by leveraging the framework's built-in guidance for assertions and mocking. This approach ensures clearer test outcomes and comprehensive coverage of functionality.

What are the limitations and testing policies for Pest PHP in Laravel?

Limitations and testing policies for Pest PHP in Laravel include specific model testing exclusions and defined best practices for browser and smoke testing. Adhering to these policies ensures tests remain reliable and maintainable.