pest-testing

Automate PHP application testing with Pest 4 for unit, feature, and browser tests.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pest testing automates writing and running PHP tests using the Pest 4 framework, reducing boilerplate and speeding up feedback loops for developers.

Core Features & Use Cases

  • Browser Testing: Full integration tests in real browsers, including Livewire components and dynamic pages.
  • Smoke Testing: Quick checks to ensure basic app health and routes.
  • Visual Regression: Capture and compare UI representations to detect unintended changes.
  • Test Sharding: Distribute tests across CI workers for faster feedback.
  • Architecture & Style Checks: Enforce testing conventions and maintainable test structure.

Quick Start

Create a new Pest test with php artisan make:test --pest {name}.

Frequently Asked Questions about pest-testing

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

FAQPage Schema
How do I automate PHP application testing with Pest 4?

Automate PHP application testing with Pest 4 by generating test files using the Artisan command and configuring datasets, mocks, and assertions to streamline unit, feature, and browser workflows. This reduces boilerplate and accelerates developer feedback loops.

Can I test Livewire components and dynamic pages using Pest?

Yes, you can test Livewire components and dynamic pages using Pest browser testing. It executes full integration tests in real browsers to validate dynamic page interactions and ensure Livewire component behavior functions correctly end-to-end.

What's the best way to organize data-driven and mocked test setups in Laravel?

The best way to organize data-driven and mocked test setups in Laravel is using Pest datasets alongside mock-based test organization. This approach applies structured assertions across varied input scenarios while maintaining a clean, maintainable test architecture.

Do I need PHP 8+ to run Pest 4 tests in a Laravel project?

Yes, you need PHP 8+ and Pest 4 installed in a Laravel project to run these tests. This environment supports Artisan test commands, enabling efficient execution of smoke checks, visual regression, and test sharding across CI workers.

How does test sharding distribute tests across CI workers?

Test sharding distributes automated Pest tests across multiple CI workers to enable faster feedback. By splitting the test suite into parallel segments, it reduces overall execution time while maintaining comprehensive coverage for unit and feature scenarios.