pest-testing

Write, fix, and refactor Laravel Pest tests using Pest 4 syntax.

41|4|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/lartisan/filament-architect --skill pest-testing-lartisan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pest-testing
Source: https://github.com/lartisan/filament-architect/tree/main/.agents/skills/pest-testing
Command: npx skills add https://github.com/lartisan/filament-architect --skill pest-testing-lartisan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the friction of creating, fixing, and modernizing tests in Laravel projects by standardizing work in Pest and keeping test coverage aligned with code changes.

Core Features & Use Cases

  • Write new Feature, Unit, and Browser tests in Pest.
  • Refactor PHPUnit tests into Pest syntax, add datasets, and improve assertions.
  • Support browser workflows, smoke tests, Livewire component tests, architecture checks, and clean database-backed test setups.
  • Example use case: convert a failing PHPUnit feature test into a concise Pest test and verify it with the smallest focused test run.

Quick Start

Tell the assistant to create, fix, or refactor the relevant Pest test for your Laravel code and run the narrowest matching test command to confirm it passes.

Frequently Asked Questions about pest-testing

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

FAQPage Schema
How do I write Laravel Pest tests for feature and unit workflows?

Write Laravel Pest tests by generating concise feature and unit test cases using Pest 4 syntax and Laravel testing helpers. This Skill standardizes test creation, applies RefreshDatabase when needed, and runs the narrowest focused test command to verify minimal passing test coverage.

Can I refactor PHPUnit tests into Pest syntax for my Laravel project?

Refactor PHPUnit tests into Pest syntax by converting legacy assertions into concise Pest 4 expressions and adding datasets. This Skill modernizes your existing test suite while preserving verification logic and confirming the refactored test passes with a focused minimal test run.

Does this approach support browser testing and Livewire component tests?

Browser testing and Livewire component tests are fully supported within the Laravel Pest testing workflow. This Skill handles browser workflows, smoke tests, and Livewire component verification using Pest 4 syntax and Laravel testing helpers to validate interactive UI behaviors.

What is the best way to run architecture tests in a Laravel Pest suite?

Architecture tests in a Laravel Pest suite validate structural code rules and dependency constraints. This Skill writes and refactors architecture checks using Pest 4 syntax to enforce application architecture standards and keep test coverage aligned with code changes.

How do datasets work when writing Pest tests for Laravel?

Datasets in Pest tests allow running the same assertion logic against multiple data inputs. This Skill creates and integrates datasets into your Laravel Pest tests to expand coverage efficiently and refactor existing test suites into concise, data-driven verification cases.