pest-testing

Standardize Pest-based testing for Laravel unit, feature, and browser tests.

Updated May 5, 2026
One-click install
npx skills add https://github.com/EvanderSG29/KanSor --skill pest-testing-evandersg29
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pest-testing
Source: https://github.com/EvanderSG29/KanSor/tree/main/.agents/skills/pest-testing
Command: npx skills add https://github.com/EvanderSG29/KanSor --skill pest-testing-evandersg29

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pest testing in Laravel projects can be inconsistent when teams switch between PHPUnit and Pest, making tests harder to read, maintain, and onboard new developers. This skill provides a clear, Pest-first approach that standardizes test writing across unit, feature, and browser tests, improving readability and collaboration.

Core Features & Use Cases

  • Unified syntax: Write tests with Pest's expressive syntax for PHP in Laravel apps.
  • Test organization: Guidance for placing tests in tests/Unit, tests/Feature, and tests/Browser.
  • Advanced topics: Datasets, mocking, browser testing, and architecture testing with Pest 4 features.
  • Migration path: Supports converting existing PHPUnit tests to Pest and adopting TDD workflows.

Quick Start

Use Pest to create tests with php artisan make:test --pest and start placing them in tests/Feature and tests/Unit.

Frequently Asked Questions about pest-testing

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

FAQPage Schema
How do I migrate PHPUnit tests to Pest in Laravel?

Migrating PHPUnit tests to Pest in Laravel involves converting existing test cases into Pest's expressive syntax. This skill provides a clear migration path, supporting the transition of unit and feature tests while standardizing test organization across your application.

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

Organizing Pest tests in Laravel involves placing them in dedicated directories like tests/Unit, tests/Feature, and tests/Browser. This skill provides guidance on structuring these files to ensure your test suites remain readable, maintainable, and scalable.

Does Pest 4 support datasets and mocking for Laravel feature tests?

Pest 4 supports datasets and mocking for Laravel feature tests. This skill provides guidance on utilizing these advanced features, allowing you to handle complex test scenarios and dependencies effectively within your testing workflows.

Can I use Pest for browser testing in Laravel applications?

You can use Pest for browser testing in Laravel applications. This skill offers guidance on writing and organizing browser tests, ensuring reliable end-to-end test coverage by leveraging Pest's unified syntax across your testing environment.

How do I start doing TDD workflows with Pest in Laravel?

Starting TDD workflows with Pest in Laravel involves creating tests using php artisan make:test --pest and placing them in the appropriate directories. This skill supports adopting test-driven development practices to build reliable applications.