Pārlūkot izejas kodu

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 9 mēneši atpakaļ
vecāks
revīzija
baa23b16bb

+ 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..."