Skills

Testing Best Practices

Laravel test design and review.

Install

npx skills add yaojingang/GEOFlow --skill testing-best-practices -g -a claude-code -y
Repository
yaojingang/GEOFlow4k
Category
Design
Updated
4d ago
License
MIT
Context cost
Lightabout 956 tokens
Runs scripts
No, instructions only

What it does

Laravel test design and review. Use when selecting coverage, naming or structuring tests, choosing assertions or test data, isolating dependencies, testing HTTP or security boundaries, improving suite performance, or reviewing test value. Use framework guidance or search-docs for Pest and PHPUnit syntax.

Testing Best Practices

This skill provides rules for designing Laravel tests. Each rule file explains what to do and why. Use search-docs for Laravel API syntax. Fetch the PHPUnit 11.5.55 documentation at https://phpunit.de/documentation.html for PHPUnit API syntax. This project uses PHPUnit. Follow the corresponding guidance in each rule.

Consistency First

Read nearby tests before you choose syntax and organization.

A pattern repeated throughout the project is a convention, and project conventions take precedence over this skill. Follow them and give new tests the same structure.

These rules govern the tests you write now. An existing test that follows a project convention is not defective merely because it conflicts with this skill. Do not delete or rewrite it. If the convention has drawbacks, explain them and let the user decide.

What to Test

Read this section before you write a test.

Read the whole SKILL.md on GitHub

More in Design