brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
real-e2e-testRun real E2E tests against Claude CLI in pytest and tmux modes
Independent GitHub snapshot · Automated classification · Original documentation governs
Run real end-to-end tests that start claude-tap from local source, connect to the
real Claude CLI, and verify trace output.
claude CLI installed and authenticateduv sync --extra devtmux installed for interactive mode (brew install tmux)uv run pytest tests/e2e/ --run-real-e2e --timeout=300 -v
uv run pytest tests/e2e/test_real_proxy.py::TestRealProxy::test_single_turn --run-real-e2e --timeout=180 -v -s
uv run pytest tests/e2e/ --run-real-e2e --timeout=300 -v -s --tb=long
Use this when you need to validate non--p interactive behavior in Claude Code TUI.
scripts/run_real_e2e_tmux.sh
Optional overrides:
PROMPT_ONE="Use the shell tool to run command ls in the current directory, then reply with any 5 filenames only." \
PROMPT_TWO="Thank you." \
SUBMIT_KEY="Enter" \
PERMISSION_MODE="bypassPermissions" \
scripts/run_real_e2e_tmux.sh
Important tmux interaction notes:
Enter for Claude Code TUI in tmux (confirmed working).PROMPT_ONE should intentionally trigger tool use.grep -F instead of rg in shell assertions (rg may be unavailable)..jsonl contains both prompts (PROMPT_ONE, PROMPT_TWO)/v1/messages"type": "tool_use"trace_*.html)--run-real-e2e is required.| Test | Timeout | What It Tests |
|---|---|---|
test_single_turn | 180s | Basic prompt/response trace capture |
test_multi_turn | 300s | Conversation memory with -c flag |
test_tool_use | 180s | Tool use generates multiple trace records |
test_html_viewer_generated | 180s | HTML viewer generated with embedded trace data |
test_api_key_redaction | 180s | API keys redacted from trace output |
test_streaming_sse_capture | 180s | SSE events captured in streaming mode |
test_trace_summary | 180s | CLI stdout includes trace summary and API call count |