pest-testing-setup

Configure PestPHP and Orchestra Testbench for Laravel package testing.

35|11|Updated Dec 3, 2025
One-click install
npx skills add https://github.com/mwguerra/claude-code-plugins --skill pest-testing-setup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pest-testing-setup
Source: https://github.com/mwguerra/claude-code-plugins/tree/main/laravel-filament-package-development-specialist/skills/pest-testing
Command: npx skills add https://github.com/mwguerra/claude-code-plugins --skill pest-testing-setup

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates setting up PestPHP with Orchestra Testbench for Laravel packages, including config and example tests.

Core Features & Use Cases

  • Create phpunit.xml and Pest.php
  • Add Orchestra Testbench and Pest plugin dependencies
  • Provide sample TestCase and tests structure

Quick Start

Initialize Pest tests for a package with a simple Unit test.

Frequently Asked Questions about pest-testing-setup

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

FAQPage Schema
How do I set up Pest testing for a Laravel package?

Pest testing setup automates configuration of PestPHP with Orchestra Testbench for Laravel packages. It generates phpunit.xml, Pest.php, adds dependencies, creates test structure, and provides sample tests to start testing immediately.

What does Orchestra Testbench do for Laravel package testing?

Orchestra Testbench is a testing environment that simulates a Laravel application, allowing you to test Laravel packages in isolation. This Skill integrates it with Pest to provide a complete testing infrastructure with minimal manual configuration.

Can I add Filament Livewire testing to my Laravel package tests?

Yes, this Skill supports optional Filament Livewire testing through the --filament flag. It configures the necessary dependencies and test structure alongside standard Pest setup.

How do I enable code coverage reporting for my Laravel package tests?

Use the --with-coverage flag during setup to configure code coverage. This Skill modifies phpunit.xml to track test coverage and generates reports for your Pest test suite.

Does this Skill set up CI workflows for testing?

Yes, the --with-ci flag generates continuous integration workflow files. This automates running your Pest tests on code changes across your testing pipeline.

What Laravel package testing framework does Pest provide?

Pest is a testing framework built on PHPUnit that offers a more expressive, modern syntax for writing tests. Combined with Orchestra Testbench, it streamlines testing Laravel packages with cleaner, readable test code.