real-e2e-test
Skill3.3k starsChanged 3 months agoMITView on GitHub
Run real E2E tests against Claude CLI in pytest and tmux modes
- Installs packages
Trending
Quiet since September.thin dataabout the whole repository
Who's talking about liaohch3/claude-tap
- sudosubin/agents.nix“agent-skills.github.liaohch3.claude-tap: init at 0.1.145”GitHub · Sep 29, 2026
- chenhg5/cc-connect“[Bug] I am using both cc-connect and claude-tap, but response is missing in claude-tap”GitHub · Jun 6, 2026
- jianshuo/ccglass“feat: surface API errors, non-2xx responses, and retry loops in the dashboard”GitHub · May 24, 2026
- jianshuo/ccglass“feat: harden & expand request-format rendering (OpenAI Responses/Codex edge cases, Gemini)”GitHub · May 24, 2026
The biggest 4 of 4 mentions linking to the repository that our crawl found. Each line is their own headline.
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- codex-e2e-testSkill
- demo-videoSkill
- e2e-testSkill
- js-in-html-testingSkill
- legibility-checkSkill
- playwright-screen-recordingSkill
- pr-preflightSkill
- push-releaseSkill
- screenshot-validationSkill
- translate-i18nSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
Run real end-to-end tests that start claude-tap from local source, connect to the real Claude CLI, and verify trace output.
- Very specific: line 37
Use this when you need to validate non--p interactive behavior in Claude Code TUI.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Real E2E Test Skill
Run real end-to-end tests that start claude-tap from local source, connect to the
real Claude CLI, and verify trace output.
Prerequisites
claudeCLI installed and authenticated- Python dev dependencies installed:
uv sync --extra dev tmuxinstalled for interactive mode (brew install tmux)
Mode 1: Pytest Real E2E (7 test cases)
Run all real E2E tests
uv run pytest tests/e2e/ --run-real-e2e --timeout=300 -vRun a single test
uv run pytest tests/e2e/test_real_proxy.py::TestRealProxy::test_single_turn --run-real-e2e --timeout=180 -v -sRun with debug output
uv run pytest tests/e2e/ --run-real-e2e --timeout=300 -v -s --tb=longMode 2: tmux Interactive Real E2E
Use this when you need to validate non--p interactive behavior in Claude Code TUI.
scripts/run_real_e2e_tmux.shOptional 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.shImportant tmux interaction notes:
- Submit key is
Enterfor Claude Code TUI in tmux (confirmed working). PROMPT_ONEshould intentionally trigger tool use.- For portability, use
grep -Finstead ofrgin shell assertions (rgmay be unavailable).
Verification Checklist (for both modes)
- Latest trace
.jsonlcontains both prompts (PROMPT_ONE,PROMPT_TWO) - At least 2 requests hit
/v1/messages - At least one response content block has
"type": "tool_use" - HTML viewer file is generated (
trace_*.html)
Notes
- Real E2E tests are skipped by default;
--run-real-e2eis required. - Each pytest case starts a fresh proxy server and trace directory.
- Timeouts are intentionally generous because real API calls are involved.
- tmux mode includes retry logic for prompt submission and post-run JSONL assertions.
Pytest Test Cases
| 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 |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

