pest-testing — pest-testing install pest-testing, community, pest-testing install, ide skills, pest-testing documentation, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Ideal for PHP-focused AI Agents seeking to streamline test generation and automation for PHP applications Pest-testing is a testing framework that allows developers to write and organize tests using the Pest 3 pattern.

Features

Creates tests using the `php artisan make:test --pest {name}` command
Organizes tests in the `tests/Feature` directory
Supports debugging test failures and modifying existing tests
Enables writing architecture tests using Pest 3 patterns
Integrates with `search-docs` for detailed documentation and patterns

# Core Topics

quileab quileab
[0]
[0]
Updated: 3/8/2026

Agent Capability Analysis

The pest-testing skill by quileab is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for pest-testing install, pest-testing documentation.

Ideal Agent Persona

Ideal for PHP-focused AI Agents seeking to streamline test generation and automation for PHP applications

Core Value

Empowers agents to automate test generation for PHP applications using Pest, simplifying the testing process with features like test organization and debugging of test failures, utilizing PHP artisan commands and Pest 3 patterns

Capabilities Granted for pest-testing

Automating test creation for new PHP features
Debugging test failures in existing PHP applications
Organizing and maintaining tests in the tests/Feature directory
Generating architecture tests for PHP projects

! Prerequisites & Limits

  • Requires PHP and Pest 3 setup
  • Limited to PHP applications
  • Needs access to the terminal for running PHP artisan commands
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

pest-testing

Install pest-testing, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Pest Testing 3

When to Apply

Activate this skill when:

  • Creating new tests (unit or feature)
  • Modifying existing tests
  • Debugging test failures
  • Working with datasets, mocking, or test organization
  • Writing architecture tests

Documentation

Use search-docs for detailed Pest 3 patterns and documentation.

Basic Usage

Creating Tests

All tests must be written using Pest. Use php artisan make:test --pest {name}.

Test Organization

  • Tests live in the tests/Feature and tests/Unit directories.
  • Do NOT remove tests without approval - these are core application code.
  • Test happy paths, failure paths, and edge cases.

Basic Test Structure

<code-snippet name="Basic Pest Test Example" lang="php">

it('is true', function () { expect(true)->toBeTrue(); });

</code-snippet>

Running Tests

  • Run minimal tests with filter before finalizing: php artisan test --compact --filter=testName.
  • Run all tests: php artisan test --compact.
  • Run file: php artisan test --compact tests/Feature/ExampleTest.php.

Assertions

Use specific assertions (assertSuccessful(), assertNotFound()) instead of assertStatus():

<code-snippet name="Pest Response Assertion" lang="php">

it('returns all', function () { $this->postJson('/api/docs', [])->assertSuccessful(); });

</code-snippet>
UseInstead of
assertSuccessful()assertStatus(200)
assertNotFound()assertStatus(404)
assertForbidden()assertStatus(403)

Mocking

Import mock function before use: use function Pest\Laravel\mock;

Datasets

Use datasets for repetitive tests (validation rules, etc.):

<code-snippet name="Pest Dataset Example" lang="php">

it('has emails', function (string $email) { expect($email)->not->toBeEmpty(); })->with([ 'james' => 'james@laravel.com', 'taylor' => 'taylor@laravel.com', ]);

</code-snippet>

Pest 3 Features

Architecture Testing

Pest 3 includes architecture testing to enforce code conventions:

<code-snippet name="Architecture Test Example" lang="php">

arch('controllers') ->expect('App\Http\Controllers') ->toExtendNothing() ->toHaveSuffix('Controller');

arch('models') ->expect('App\Models') ->toExtend('Illuminate\Database\Eloquent\Model');

arch('no debugging') ->expect(['dd', 'dump', 'ray']) ->not->toBeUsed();

</code-snippet>

Type Coverage

Pest 3 provides improved type coverage analysis. Run with --type-coverage flag.

Common Pitfalls

  • Not importing use function Pest\Laravel\mock; before using mock
  • Using assertStatus(200) instead of assertSuccessful()
  • Forgetting datasets for repetitive validation tests
  • Deleting tests without approval

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is pest-testing?

Ideal for PHP-focused AI Agents seeking to streamline test generation and automation for PHP applications Pest-testing is a testing framework that allows developers to write and organize tests using the Pest 3 pattern.

How do I install pest-testing?

Run the command: npx killer-skills add quileab/sae/pest-testing. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for pest-testing?

Key use cases include: Automating test creation for new PHP features, Debugging test failures in existing PHP applications, Organizing and maintaining tests in the tests/Feature directory, Generating architecture tests for PHP projects.

Which IDEs are compatible with pest-testing?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for pest-testing?

Requires PHP and Pest 3 setup. Limited to PHP applications. Needs access to the terminal for running PHP artisan commands.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add quileab/sae/pest-testing. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use pest-testing immediately in the current project.

Related Skills

Looking for an alternative to pest-testing or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI