0
Test runner
Kod değişikliklerinden sonra ilgili testleri otomatik olarak çalıştırın
yazan kuscubasiece·8 Eylül 2026
Kaynak: davepoon/claude-code-subagents-collection · MIT
Kod değişikliklerinden sonra ilgili testleri otomatik olarak çalıştırın
Kaynak: davepoon/claude-code-subagents-collection · MIT
curl -sL https://www.antrophiclove.com/api/kaynak/test-runner-buildwithclaude/rawBu içerik mevcut dosyaya elle harmanlanmalı: .claude/settings.json
Automatically run relevant tests after code changes
PostToolUseEditNone required
file_path=$(jq -r '.tool_input.file_path // empty')
if [[ "$file_path" =~ \.test\.(ts|tsx|js|jsx)$ ]] || [[ "$file_path" =~ \.spec\.(ts|tsx|js|jsx)$ ]]; then
npm test -- --testPathPattern="$(basename "$file_path")" 2>/dev/null || true
elif [[ "$file_path" =~ test_.*\.py$ ]] || [[ "$file_path" =~ .*_test\.py$ ]]; then
python3 -m pytest "$file_path" -v 2>/dev/null || true
fi