filament-testing

Generate Pest tests for FilamentPHP v4 resources, forms, tables, and authorization.

35|11|Updated Dec 3, 2025
One-click install
npx skills add https://github.com/mwguerra/claude-code-plugins --skill filament-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: filament-testing
Source: https://github.com/mwguerra/claude-code-plugins/tree/main/filament-specialist/skills/filament-testing
Command: npx skills add https://github.com/mwguerra/claude-code-plugins --skill filament-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill scaffolds Pest testing for Filament-based resources and components to ensure robust quality.

Core Features & Use Cases

  • Pest test scaffolding for resources and forms
  • Livewire and Filament-specific testing helpers
  • Optional CI/test coverage integration

Quick Start

Initialize Pest tests for a resource by creating tests in tests/ and a basic TestCase.

Frequently Asked Questions about filament-testing

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

FAQPage Schema
How do I generate Pest tests for Filament resources?

Pest test generation for Filament resources scaffolds test files with assertions for forms, tables, and authorization. Create tests in your tests/ directory using the Skill to wire a base TestCase and Pest configuration, then write test cases targeting listing, creation, editing, and bulk operations following Filament's testing patterns.

Can I test Filament forms and validation with Pest?

Yes. Pest testing for Filament forms covers validation rules, field interactions, and submission flows. The Skill provides Livewire-specific testing helpers to assert form behavior, validate error states, and confirm successful data handling across your admin panel components.

How do I test Filament table sorting and filtering?

Pest tests for Filament tables exercise sorting and filtering by asserting table column order, filter application, and result consistency. The Skill generates test scaffolding that wires Livewire interactions to verify table state changes and data retrieval under different filter and sort conditions.

Does Pest work with Filament authorization and access control?

Yes. Pest testing integrates with Filament authorization by writing tests that verify resource access control, policy enforcement, and permission checks. The Skill provides guidance to test denied access scenarios, authorized operations, and bulk action restrictions across listing, creation, and editing pages.

What's the best way to set up test coverage for Filament admin panels?

Set up Pest test coverage for Filament by initializing a base TestCase, configuring Pest in your tests/ directory, and writing user flow tests that exercise common admin panel operations. The Skill provides documentation-driven patterns to scaffold tests ensuring coverage of resources, forms, tables, and authorization boundaries.

Can I test Livewire components within Filament using Pest?

Yes. Pest testing for Livewire components in Filament uses Livewire-specific testing helpers to assert component state, event emission, and data binding. The Skill scaffolds tests for Filament's Livewire-backed resources, forms, and tables to verify interactive behavior and user interactions.