testing

Guide creation and execution of Pest-based tests for Laravel projects.

Updated Jan 8, 2026
One-click install
npx skills add https://github.com/markhamsquareventures/essentials --skill testing-markhamsquareventures
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing
Source: https://github.com/markhamsquareventures/essentials/tree/main/skills/testing
Command: npx skills add https://github.com/markhamsquareventures/essentials --skill testing-markhamsquareventures

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This guide helps teams consistently apply Pest-based testing conventions for Laravel projects, reducing flaky tests and improving coverage.

Core Features & Use Cases

  • Pest-guided testing practices that standardize how tests are written and organized.
  • Clear guidance on test structure, naming, and workflow to support unit and feature tests.
  • Use Case: When starting a new feature, follow Pest-driven tests before implementing code to define acceptance criteria and design.

Quick Start

Follow Pest-driven guidelines to write your first unit or feature test before implementing new features.

Frequently Asked Questions about testing

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

FAQPage Schema
How do I structure Pest tests for Laravel feature and unit testing workflows?

To structure Pest tests for Laravel, you should organize files within the tests/Unit and tests/Feature directories. Applying standardized naming conventions and test organization ensures your unit and feature testing workflows properly cover happy paths, failures, and edge cases.

What is the best way to reduce flaky tests in Laravel Pest projects?

The best way to reduce flaky tests in Laravel Pest projects is to consistently apply standardized testing conventions. Establishing clear guidance on test structure, naming, and workflow improves overall test quality and coverage across your application.

How do I run Pest tests in a Laravel application?

You run Pest tests in a Laravel application by executing the php artisan test command. This command runs your test suites while ensuring your tests cover the expected happy paths, failures, and edge cases defined in your tests/Unit and tests/Feature directories.

Can I use Pest driven development to define acceptance criteria before implementing Laravel features?

Yes, you can use Pest driven development to define acceptance criteria before implementing new Laravel features. By writing your first unit or feature test before the code, you establish clear design requirements and expected outcomes for your application.

Does Pest testing support both happy paths and edge cases in Laravel?

Yes, Pest testing supports both happy paths and edge cases in Laravel. The testing workflow specifically ensures that your unit and feature tests cover successful operations, expected failures, and boundary edge cases within your tests/Unit and tests/Feature directories.

Why do I need standardized naming conventions for Laravel Pest tests?

You need standardized naming conventions for Laravel Pest tests to maintain consistency across your team and reduce flaky tests. Clear test structure and naming conventions support the organization and execution of unit and feature tests.