pest-testing

Automate Pest 4 testing workflows for PHP applications.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Tests applications using the Pest 4 PHP framework. Activates when writing tests, creating unit or feature tests, adding assertions, testing Livewire components, browser testing, debugging test failures, working with datasets or mocking; or when the user mentions test, spec, TDD, expects, assertion, coverage, or needs to verify functionality works.

Core Features & Use Cases

  • Pest 4 powered testing for PHP applications including unit, feature, and browser tests.
  • Livewire component testing, dataset-driven tests, and mocking support.
  • Clear conventions for test organization and robust assertion patterns to verify functionality.

Quick Start

Create a Pest-based test with php artisan make:test --pest {name} and place it under tests/Feature or tests/Unit as appropriate.

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 PHP applications?

You can test Livewire components by applying Pest 4 testing workflows that support Livewire component testing, dataset-driven tests, and mocking. This allows you to verify Livewire functionality using standard Pest assertion syntax within your Laravel test suite.

Does Pest 4 testing work with Laravel browser tests?

Yes, Pest 4 testing works with Laravel browser tests by following standard Pest conventions organized under tests/Browser. The framework applies Pest syntax to automate browser test workflows alongside unit and feature tests for comprehensive application coverage.

What's the best way to organize Pest tests in a Laravel project?

The best way to organize Pest tests in a Laravel project is to follow standard Pest conventions by placing tests under tests/Unit, tests/Feature, and tests/Browser directories. This structure ensures Pest 4 can properly automate unit, feature, and browser testing workflows.

How do I debug failing Pest tests in PHP?

Yes, Pest 4 supports dataset-driven testing and mocking by applying Pest 4 testing workflows designed for working with datasets and mocking. This allows you to create robust assertion patterns that verify functionality across multiple data scenarios in your PHP tests.

Can I use Pest 4 for mocking and dataset tests in PHP?

Yes, you can use Pest 4 for mocking and dataset tests in PHP. The framework applies Pest 4 testing workflows that include support for dataset-driven tests and mocking, enabling you to verify functionality across multiple data scenarios using standard Pest assertion syntax.