pest-testing

Execute Pest-based tests across unit, feature, and browser contexts in Laravel or PHP projects.

Updated Feb 10, 2026
One-click install
npx skills add https://github.com/calexandar/laris-ai --skill pest-testing-calexandar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pest-testing
Source: https://github.com/calexandar/laris-ai/tree/main/.junie/skills/pest-testing
Command: npx skills add https://github.com/calexandar/laris-ai --skill pest-testing-calexandar

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pest-based PHP testing simplifies creating, organizing, and running unit, feature, and browser tests, reducing boilerplate and speeding feedback loops in PHP/Laravel projects.

Core Features & Use Cases

  • Pest-based test scaffolding and organization in tests/Unit, tests/Feature, and tests/Browser to keep tests maintainable.
  • Expressive assertions and debugging to quickly identify failures and improve test reliability.
  • Browser testing and data-driven scenarios including Livewire components, datasets, and mocking to cover end-to-end scenarios.

Quick Start

Write Pest tests using artisan and run php artisan test to verify functionality.

Frequently Asked Questions about pest-testing

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

FAQPage Schema
How do I organize Pest PHP tests for a Laravel application?

Organize Pest PHP tests by placing them into specific directories: tests/Unit for unit tests, tests/Feature for feature tests, and tests/Browser for browser tests. This structure keeps tests maintainable and enforces standard testing practices.

How do I run Pest tests in a Laravel project?

Run Pest tests in a Laravel project by executing the php artisan test command. This validates application behavior across unit, feature, and browser contexts while applying Pest 4 patterns to speed up your feedback loop.

What are the benefits of using Pest over PHPUnit for PHP testing?

Pest simplifies PHP testing by reducing boilerplate and promoting expressive assertions. It handles unit, feature, and browser contexts while enforcing Pest 4 patterns to speed up feedback loops and improve test reliability during debugging.

Can I use Pest for browser testing and Livewire components in Laravel?

Yes, Pest supports browser testing and data-driven scenarios including Livewire components and datasets. It enables mocking and end-to-end testing within the tests/Browser directory to validate complex application behaviors.

Do I need specific dependencies to start writing Pest tests for PHP?

You need a Laravel or PHP project environment to start writing Pest tests. The setup uses artisan commands for scaffolding and relies on the php artisan test command to execute and verify functionality across your application.

Why are my Pest tests failing during debugging in Laravel?

Pest tests failing during debugging can be identified using expressive assertions designed to quickly pinpoint failures. The skill helps improve test reliability by applying Pest 4 patterns and organizing tests into Unit, Feature, and Browser contexts.