Claude Code Plugins

Community-maintained marketplace

Feedback

Generate comprehensive Pest test suites for Laravel projects including tests for controllers, services, Livewire components, commands, jobs, and models with proper describe blocks for organization, mocking setup, happy path and failure scenarios, RefreshDatabase trait, and coverage for all public methods. Use this skill when creating test files for new features, adding test coverage for controllers or services, writing tests for API endpoints, testing Livewire components, ensuring proper test structure with beforeEach and describe blocks, implementing mocking strategies, or writing dataset-driven tests. This skill applies when working on files in tests/Feature/ or tests/Unit/ directories, creating Pest test files, or ensuring comprehensive test coverage.

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

name Testing Pest
description Generate comprehensive Pest test suites for Laravel projects including tests for controllers, services, Livewire components, commands, jobs, and models with proper describe blocks for organization, mocking setup, happy path and failure scenarios, RefreshDatabase trait, and coverage for all public methods. Use this skill when creating test files for new features, adding test coverage for controllers or services, writing tests for API endpoints, testing Livewire components, ensuring proper test structure with beforeEach and describe blocks, implementing mocking strategies, or writing dataset-driven tests. This skill applies when working on files in tests/Feature/ or tests/Unit/ directories, creating Pest test files, or ensuring comprehensive test coverage.

Testing Pest

When to use this skill

  • When creating test files for new Laravel features or classes
  • When adding test coverage for controllers, services, or API endpoints
  • When writing tests for Livewire components with user interactions
  • When testing Artisan commands or queued jobs
  • When ensuring proper test structure with describe blocks and beforeEach hooks
  • When implementing mocking strategies for external dependencies
  • When writing dataset-driven tests for multiple scenarios
  • When testing model relationships and database interactions
  • When working on files in tests/Feature/ directory (integration tests)
  • When working on files in tests/Unit/ directory (isolated unit tests)
  • When creating comprehensive test coverage including happy paths and failures
  • When using RefreshDatabase trait for database tests
  • When mocking HTTP requests with Saloon MockClient

This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle testing pest.

Instructions

For details, refer to the information provided in this file: testing pest