# Testing Best Practices

Laravel test design and review.

- Repository: https://github.com/yaojingang/GEOFlow (3990 stars)
- Category: Design
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add yaojingang/GEOFlow --skill testing-best-practices -g -a claude-code -y`
Codex: `npx skills add yaojingang/GEOFlow --skill testing-best-practices -g -a codex -y`
Cursor: `npx skills add yaojingang/GEOFlow --skill testing-best-practices -g -a cursor -y`
Gemini CLI: `npx skills add yaojingang/GEOFlow --skill testing-best-practices -g -a gemini-cli -y`

## Description

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.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# 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.

The rest: https://github.com/yaojingang/GEOFlow/blob/HEAD/.agents/skills/testing-best-practices/SKILL.md
