pest-testing

Automate Pest-based unit, feature, browser, and architecture tests in Laravel.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/moonpixels/laravel-skeleton-react --skill pest-testing-moonpixels
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pest-testing
Source: https://github.com/moonpixels/laravel-skeleton-react/tree/main/.opencode/skills/pest-testing
Command: npx skills add https://github.com/moonpixels/laravel-skeleton-react --skill pest-testing-moonpixels

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Pest-first testing workflows simplify Laravel project quality assurance by standardizing Pest-based tests and reducing debugging time.

Core Features & Use Cases

  • Pest-first testing workflows for unit, feature, browser, and architecture tests.
  • Encourages semantic assertions, factories, datasets, and mocks.
  • Integrates with Laravel conventions and provides clear guidance for writing robust tests.

Quick Start

Create a Pest-based test in your Laravel project and run the test suite.

Frequently Asked Questions about pest-testing

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

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

To write Pest tests for a Laravel application, use php artisan make:test --pest to generate files and php artisan test to execute unit, feature, browser, and architecture testing scenarios with semantic assertions.

What is Pest-driven testing in Laravel projects?

Pest-driven testing is a workflow that standardizes unit, feature, browser, and architecture tests in Laravel projects using semantic assertions, datasets, and mocks to simplify quality assurance and reduce debugging time.

Does Pest testing work with browser and architecture tests in Laravel?

Yes, Pest testing works with browser and architecture tests in Laravel. The workflow supports applying Pest to multiple testing scenarios, including browser checks and architecture testing, alongside standard unit and feature tests.

Do I need a specific version of Pest for Laravel testing workflows?

Yes, you need Pest 4 installed in your Laravel project to use this testing workflow. This version is required to support the creation and execution of unit, feature, browser, and architecture tests via artisan commands.

How do I debug failing Pest tests in a Laravel project?

To debug failing Pest tests in a Laravel project, use the Pest-driven testing workflow to apply structured debugging techniques, utilizing mocks, datasets, and semantic assertions to isolate and resolve test failures efficiently.

What is the best way to use datasets and mocks in Pest for Laravel?

The best way to use datasets and mocks in Pest for Laravel is through the Pest-first testing workflow, which encourages semantic assertions and integrates with Laravel conventions to structure robust test cases.