Skip to content

Chemaclass/satscribe / .claude/skills/test

Run tests with smart scoping by module, file, or filter

Test Runner

Run the minimum scope for what changed. Prefer narrow over broad.

ChangedCommand
One modulevendor/bin/phpunit tests/Unit/<Module>/
One classvendor/bin/phpunit --filter <ClassName>
One behaviorvendor/bin/phpunit --filter test_method_name
HTTP / DB codevendor/bin/phpunit --testsuite=feature
Types onlycomposer phpstan
Anything before commitcomposer test

Available scripts:

composer test        # phpstan + phpunit — the gate
composer phpunit     # tests only
composer phpstan     # static analysis only
composer test:coverage   # HTML coverage into local/coverage

Instructions

  1. Empty $ARGUMENTS or all → composer test
  2. quick → vendor/bin/phpunit --testsuite=unit (skip phpstan and feature suite)
  3. unit / feature → vendor/bin/phpunit --testsuite=$ARGUMENTS
  4. phpstan → composer phpstan
  5. coverage → composer test:coverage
  6. A module name (Chat, Payment, …) → vendor/bin/phpunit tests/Unit/<Module>/
  7. A path → vendor/bin/phpunit "$ARGUMENTS"
  8. Anything else → vendor/bin/phpunit --filter "$ARGUMENTS"

Report pass/fail counts. On failure, quote the assertion verbatim and name the file:line — do not paraphrase the error.

finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 319kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 319kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 319kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 196kUpdated Claude CodeCodexVerifiedInstall