README.md: - GitHub-friendly documentation - Installation instructions - Plugin overview with commands review plugin: - /review:security - Security-focused review - /review:pr - PR review - hooks.json - Post PR create suggestion - scripts/post-pr-create.sh verify plugin: - /verify:ready - Quick readiness check - /verify:tests - Test verification - hooks.json - Pre-push warning - scripts/pre-push-check.sh qa plugin: - /qa:check - Report only, no fixes - /qa:lint - Lint with fix option - hooks.json - QA output filtering ci plugin: - /ci:status - CI status display - /ci:run - Trigger workflows - /ci:fix - Analyse and fix failures - hooks.json - Post-push CI hint - scripts/post-push-ci.sh Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1.2 KiB
1.2 KiB
| name | description |
|---|---|
| tests | Verify tests pass for changed files |
Test Verification
Run tests related to changed files.
Process
-
Identify changed files
git diff --name-only HEAD -
Find related tests
- Go:
*_test.gofiles in same package - PHP:
*Test.phpfiles in tests/ directory
- Go:
-
Run targeted tests
# Go - run package tests core go test ./pkg/changed/... # PHP - run filtered tests core php test --filter=ChangedTest -
Report results
Smart Test Detection
Go
Changed: pkg/api/handler.go
Related: pkg/api/handler_test.go
Run: core go test ./pkg/api/...
PHP
Changed: src/Http/UserController.php
Related: tests/Http/UserControllerTest.php
Run: core php test tests/Http/UserControllerTest.php
Output
## Test Verification
**Changed files**: 3
**Related tests**: 2 packages
### Results
✓ pkg/api: 12 tests passed
✓ pkg/auth: 8 tests passed
**All tests passing!**
Or:
## Test Verification
**Changed files**: 3
**Related tests**: 2 packages
### Results
✓ pkg/api: 12 tests passed
✗ pkg/auth: 1 failed
### Failures
- TestValidateToken: expected true, got false
auth_test.go:45
**Fix failing tests before committing.**