Skip to content
Back to skills

Test

ASecurity

Run tests with smart filtering by scope, class, or file path

  • 133 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 12, 2026
developmentphpbash

Security analysis

A100/100

Scanned October 6, 2026

npx -y skills add gacela-project/gacela --skill test --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Test?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Test
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gacela-project-test/badge)](https://www.skillsdirectory.com/skills/gacela-project-test)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Run tests with smart filtering by scope, class, or file path
argument-hint: "[scope-or-filter]"
disable-model-invocation: true
x-claude:
  allowed-tools: "Bash(composer *), Bash(./vendor/bin/phpunit *)"
x-codex:
  interface:
    display_name: "Test"
    short_description: "Run tests by scope, class, or path. Args: unit, integration, feature, quick, or a filter"
---

# Quick Test Runner

1. If the argument is empty or `all`:
   ```bash
   composer test
   ```

2. If the argument is a known scope:
   - `quality` → `composer quality`
   - `unit` → `composer test-unit`
   - `integration` → `composer test-integration`
   - `feature` → `composer test-feature`
   - `quick` → `composer phpunit` (skip static analysis)
   - `bench` → `composer phpbench`
   - `infection` → `composer infection`

3. If the argument looks like a test class or method name:
   ```bash
   ./vendor/bin/phpunit --filter "<argument>"
   ```

4. If the argument looks like a file path:
   ```bash
   ./vendor/bin/phpunit "<argument>"
   ```

5. Report the pass and fail counts. The suite runs in random order: when a test fails only sometimes, re-run with `--random-order-seed=<seed>` (PHPUnit prints the seed) before blaming the change.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.