pest-testing

Create, execute, and debug Pest 4 tests for PHP applications.

10|3|Updated Mar 14, 2025
One-click install
npx skills add https://github.com/Mentor-Wizard/mentor-wizard-webapp --skill pest-testing-mentor-wizard
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pest-testing
Source: https://github.com/Mentor-Wizard/mentor-wizard-webapp/tree/main/.claude/skills/pest-testing
Command: npx skills add https://github.com/Mentor-Wizard/mentor-wizard-webapp --skill pest-testing-mentor-wizard

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of writing, running, and debugging tests for PHP applications using the Pest testing framework, ensuring code quality and reliability.

Core Features & Use Cases

  • Test Creation: Generate unit, feature, and browser tests with clear structure and organization.
  • Assertion Guidance: Provides correct assertion methods for HTTP responses and other test scenarios.
  • Mocking & Datasets: Facilitates effective mocking and the use of datasets for repetitive test cases.
  • Browser & Smoke Testing: Enables full integration testing in real browsers and quick page validation.
  • Use Case: When developing a new feature, use this Skill to write comprehensive unit and feature tests, ensuring all edge cases are covered and the code functions as expected before deployment.

Quick Start

Use the pest-testing skill to create a new unit test for the User model.

Frequently Asked Questions about pest-testing

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

FAQPage Schema
How do I write a unit test in Pest PHP for a model?

To write a unit test in Pest PHP for a model, generate structured test files with clear organization and correct assertions using this Skill. It enforces best practices for model testing policies and guides you through datasets for repetitive cases.

What is the best way to run feature tests and browser tests in Pest 4?

The best way to run feature tests and browser tests in Pest 4 is using this Skill to execute full integration tests in real browsers. It supports smoke testing scenarios for quick page validation and provides correct HTTP response assertion methods.

Can I use datasets and mocking for PHP unit tests in Pest?

Yes, you can use datasets and mocking for PHP unit tests in Pest. This Skill facilitates effective mocking and the use of datasets for repetitive test cases, ensuring comprehensive edge case coverage during test creation and debugging.

Does Pest 4 support smoke testing and quick page validation for PHP applications?

Yes, Pest 4 supports smoke testing and quick page validation for PHP applications. This Skill enables full integration testing in real browsers and quick page validation scenarios to ensure code quality and reliability before deployment.