Преглед изворни кода

test: show Claude output in real-time during integration test

Use tee instead of redirection so test output is visible during
execution while still being saved to file for analysis.
Jesse Vincent пре 10 месеци
родитељ
комит
baa23b16bb
1 измењених фајлова са 7 додато и 3 уклоњено
  1. 7 3
      tests/claude-code/test-subagent-driven-development-integration.sh

+ 7 - 3
tests/claude-code/test-subagent-driven-development-integration.sh

@@ -147,11 +147,15 @@ IMPORTANT: Follow the skill exactly. I will be verifying that you:
 
 Begin now. Execute the plan."
 
-cd "$SCRIPT_DIR/../.." && timeout 1800 claude -p "$PROMPT" --allowed-tools=all > "$OUTPUT_FILE" 2>&1 || {
-    echo "EXECUTION FAILED"
-    cat "$OUTPUT_FILE"
+echo "Running Claude (output will be shown below and saved to $OUTPUT_FILE)..."
+echo "================================================================================"
+cd "$SCRIPT_DIR/../.." && timeout 1800 claude -p "$PROMPT" --allowed-tools=all 2>&1 | tee "$OUTPUT_FILE" || {
+    echo ""
+    echo "================================================================================"
+    echo "EXECUTION FAILED (exit code: $?)"
     exit 1
 }
+echo "================================================================================"
 
 echo ""
 echo "Execution complete. Analyzing results..."