claude-import-pest-testing

Write, review, and run Pest tests under strict coverage and isolation rules.

Updated Aug 25, 2017
One-click install
npx skills add https://github.com/loki495/dotfiles --skill claude-import-pest-testing-loki495
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: claude-import-pest-testing
Source: https://github.com/loki495/dotfiles/tree/main/ai/codex-skills/claude-import-pest-testing
Command: npx skills add https://github.com/loki495/dotfiles --skill claude-import-pest-testing-loki495

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? This Skill enforces disciplined Pest testing practices for PHP projects, preventing weakened, skipped, or bypassed tests and ensuring happy-path, sad-path, coverage, and isolation standards are consistently applied. ## Core Features & Use Cases - Pest Test Authoring: Write new Pest tests that follow happy-path and sad-path conventions with proper isolation. - Test Review: Review existing Pest tests against coverage and no-test-weakening rules before merging changes. - Test Execution Guidance: Run Pest suites while refusing to delete, skip, or bypass failing tests just to get a green result. - Use Case: When a Laravel feature test fails after a refactor, use this Skill to diagnose and fix the underlying code instead of weakening the assertion. ## Quick Start Ask the assistant to write or review Pest tests for your PHP class following the pest-testing rules.

Frequently Asked Questions about claude-import-pest-testing

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

FAQPage Schema
How do I write Pest tests for a PHP class?▼

Write Pest tests by covering both the happy path and the sad path for each behavior, keeping every test isolated from external state. This Skill loads the pest-testing ruleset and applies those conventions when generating or reviewing tests.

How to review Pest tests for coverage gaps?▼

Review Pest tests by checking that each public behavior has happy-path and sad-path cases and that no assertions were weakened. The Skill enforces coverage and isolation rules from the referenced pest-testing guidelines.

Can I use Pest testing rules with Laravel projects?▼

Yes, Pest is the standard testing framework for Laravel and these rules apply directly to Laravel feature and unit tests. The Skill targets PHP projects where Pest is the test runner.

Why should failing tests not be deleted or skipped?▼

Deleting or skipping failing tests hides real defects and erodes suite trust. This Skill explicitly forbids weakening, skipping, or bypassing tests merely to obtain a passing result, requiring the underlying code or test to be fixed instead.

What are the limitations of this Pest testing Skill?▼

The Skill is a thin wrapper that delegates to the pest-testing rules file at ~/dotfiles/ai/skills/pest-testing/SKILL.md, so that file must exist locally. It provides guidance and conventions rather than executing test suites itself.