pest-testing

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

63|7|Updated Jan 20, 2023
One-click install
npx skills add https://github.com/raugadh/fila-starter --skill pest-testing-raugadh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pest-testing
Source: https://github.com/raugadh/fila-starter/tree/main/.opencode/skill/pest-testing
Command: npx skills add https://github.com/raugadh/fila-starter --skill pest-testing-raugadh

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 using Pest syntax.
  • Test Execution: Run specific tests, filtered tests, or all tests efficiently.
  • Assertions & Mocking: Utilize a wide range of assertions and mocking capabilities for robust testing.
  • Advanced Testing: Supports browser testing, smoke testing, visual regression, and architecture testing.
  • Use Case: When developing a new feature, use this Skill to quickly scaffold and run tests for your Livewire components and API endpoints, verifying functionality before deployment.

Quick Start

Use the pest-testing skill to create a new feature test named 'User can login'.

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 Pest PHP tests for my application?

To write and run Pest PHP tests, you use the Pest 4 framework syntax to generate unit, feature, and browser tests, then execute specific or filtered tests to verify application functionality and code reliability.

What is the best way to scaffold feature tests for Livewire components and API endpoints in PHP?

The best way to scaffold feature tests for Livewire components and API endpoints is using the Pest testing framework to quickly generate test structures, write assertions, and verify functionality before deployment.

Can I use Pest PHP for both unit testing and browser testing?

Yes, you can use Pest PHP for both unit testing and browser testing. The framework supports generating and executing unit, feature, and browser tests, along with smoke testing and visual regression checks.

Does Pest PHP support mocking and dataset utilization for robust test coverage?

Pest PHP supports mocking and dataset utilization for robust test coverage. You can utilize a wide range of assertions and mocking capabilities to thoroughly verify application logic across multiple data scenarios.

How does Pest PHP handle architecture testing and visual regression?

Pest PHP handles architecture testing and visual regression by providing specialized testing scenarios within the framework, allowing you to verify structural code rules and visual UI consistency across your application.