Enhanced Test Command
Executes tests intelligently based on PR changes or custom patterns with automatic failure fixing.
/plugin marketplace add jleechanorg/claude-commands/plugin install claude-commands@claude-commands-marketplaceWhen this command is invoked, YOU (Claude) must execute these steps immediately: This is NOT documentation - these are COMMANDS to execute right now. Use TodoWrite to track progress through multi-phase workflows.
Action Steps:
PR Change Analysis:
git branch --show-currentgit diff --name-only origin/main...HEADTest Mapping Logic:
Action Steps:
Parse Command Modifiers:
testsABC from /test testsABC)--full, --integration, --coverageExecute Tests with Output Logging:
./run_tests.sh with appropriate flags/tmp/{branch_name}/run_tests_{timestamp}.txtAction Steps:
Test File Discovery:
find . -name "*{pattern}*" -path "*/test*" -name "test_*.py"Execution Command Building:
./run_tests.sh {matched_files}Action Steps:
Local Test Analysis:
GitHub CI Status Check:
gh pr checks [PR#]gh pr checks, gh run view --log-failedAction Steps:
Purpose: Intelligent test execution with PR-based test selection and modifiers
Action: Execute tests intelligently based on PR changes or with custom modifiers
Usage:
/test - Run tests for files changed in current PR (default)/test [pattern] - Run tests matching pattern (e.g. /test testsABC)/test --full - Run complete test suite/test --integration - Include integration testsImplementation:
$PROJECT_ROOT/main.py â Run test_main*.py files$PROJECT_ROOT/gemini_service.py â Run test_gemini*.py files