pest-testing

Automate PHP unit, feature, and browser tests with Pest 4.

Updated Jun 8, 2025
One-click install
npx skills add https://github.com/noartem/kawa --skill pest-testing-noartem
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pest-testing
Source: https://github.com/noartem/kawa/tree/main/ui/.opencode/skills/pest-testing
Command: npx skills add https://github.com/noartem/kawa --skill pest-testing-noartem

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Pest Testing 4 streamlines the process of writing and maintaining PHP tests, providing a consistent framework that reduces boilerplate and increases reliability.

Core Features & Use Cases

  • Unified Test Syntax: Write unit, feature, and browser tests using Pest 4 syntax and expectations.
  • Browser & Visual Testing: Leverage real browser testing and visual regression checks for end-to-end quality.
  • Data-driven Testing: Use datasets to run the same tests with multiple inputs.
  • Test Organization: Organize tests under tests/Feature, tests/Unit, and tests/Browser with clear conventions.

Quick Start

Create a pest-based test by running php artisan make:test --pest <Name>.

Frequently Asked Questions about pest-testing

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

FAQPage Schema
How do I write feature and unit tests for PHP using Pest?

You can write feature and unit tests for PHP using Pest by leveraging its unified test syntax and expectations. This approach organizes tests under tests/Feature and tests/Unit directories, reducing boilerplate and increasing reliability.

Does Pest support browser testing and visual regression checks?

Yes, Pest supports browser testing and visual regression checks for end-to-end quality. You can leverage real browser testing patterns and organize these tests under a dedicated tests/Browser directory.

How do I run data-driven tests with multiple inputs in Pest?

To run data-driven tests in Pest, you use datasets to execute the same test logic with multiple inputs. This standardizes PHP test development by automating input variation coverage efficiently.

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

The best way to organize tests in a Laravel Pest project is by grouping them into tests/Feature, tests/Unit, and tests/Browser directories. These clear conventions standardize test management and reduce boilerplate.

Do I need Pest 4 to use this automated testing workflow?

Yes, you need Pest 4 to use this automated testing workflow. It requires specific Pest 4 features like organized test directories, specific assertions, datasets, and browser testing patterns to guide configuration.

How do I debug failing Pest tests in a PHP application?

You debug failing Pest tests by updating existing tests and analyzing failures using specific assertions. This standardizes the process of identifying and resolving issues in your PHP application code.