pest-testing

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

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

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 php artisan make:test.
  • Test Execution: Run specific tests or the entire suite efficiently using php artisan test.
  • Assertions & Mocking: Utilize a rich set of assertions and mocking capabilities for robust testing.
  • Browser Testing: Perform full integration tests in real browsers.
  • Use Case: When you need to verify that a new API endpoint functions correctly under various conditions, you would use this skill to write and execute feature tests.

Quick Start

Run all tests in the application using the command php artisan test --compact.

Frequently Asked Questions about pest-testing

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

FAQPage Schema
How do I write and run PHP tests using the Pest framework?

You can write and run Pest PHP tests by generating unit, feature, or browser tests with `php artisan make:test` and executing the suite efficiently using `php artisan test --compact`.

What types of testing scenarios does Pest support for PHP applications?

Pest supports unit, feature, browser, smoke, and architecture testing scenarios for PHP applications, utilizing a rich set of assertions, mocking capabilities, and datasets for code verification.

Can I perform browser testing with Pest for PHP applications?

Yes, you can perform full integration browser testing in real browsers using Pest, generating the necessary tests via `php artisan make:test` to verify complex application interactions.

How do I verify a new PHP API endpoint functions correctly under various conditions?

To verify a new PHP API endpoint under various conditions, write and execute feature tests using Pest's syntax for assertions, mocking, and datasets to ensure correct functionality and maintainability.

Does Pest testing require specific syntax for mocking and datasets?

Yes, Pest requires adherence to its specific syntax for tests, assertions, mocking, and datasets to ensure proper code verification and maintainability across unit, feature, and architecture tests.