Chemaclass/satscribe / .claude/skills/test
test
VerifiedRun tests with smart scoping by module, file, or filter
Test Runner
Run the minimum scope for what changed. Prefer narrow over broad.
| Changed | Command |
|---|---|
| One module | vendor/bin/phpunit tests/Unit/<Module>/ |
| One class | vendor/bin/phpunit --filter <ClassName> |
| One behavior | vendor/bin/phpunit --filter test_method_name |
| HTTP / DB code | vendor/bin/phpunit --testsuite=feature |
| Types only | composer phpstan |
| Anything before commit | composer 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
- Empty
$ARGUMENTSorall→composer test quick→vendor/bin/phpunit --testsuite=unit(skip phpstan and feature suite)unit/feature→vendor/bin/phpunit --testsuite=$ARGUMENTSphpstan→composer phpstancoverage→composer test:coverage- A module name (
Chat,Payment, …) →vendor/bin/phpunit tests/Unit/<Module>/ - A path →
vendor/bin/phpunit "$ARGUMENTS" - 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.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| 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: 196k | Updated | Claude CodeCodex | Verified | Install |