diff options
| author | Jesse Vincent <jesse@fsck.com> | 2025-11-29 11:29:12 -0800 |
|---|---|---|
| committer | Jesse Vincent <jesse@fsck.com> | 2025-12-17 16:44:50 -0800 |
| commit | baa23b16bbda52ad7082f3bfb8d68c4d0a3840f4 (patch) | |
| tree | 894ec499bd42bbd3e60ace9312194b55d951edd3 /tests/claude-code | |
| parent | 0aba33be1c64686a6e1682cce4fa2a0ed040fc33 (diff) | |
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.
Diffstat (limited to 'tests/claude-code')
| -rwxr-xr-x | tests/claude-code/test-subagent-driven-development-integration.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/claude-code/test-subagent-driven-development-integration.sh b/tests/claude-code/test-subagent-driven-development-integration.sh index e1b8efb..55c2e76 100755 --- a/tests/claude-code/test-subagent-driven-development-integration.sh +++ b/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..." |
