Agent Skills
› liaohch3/claude-tap
› e2e-test
e2e-test
GitHub用于在修改 claude-tap 核心逻辑后运行端到端测试,验证代理处理、SSE 流、Trace 清理及 HTML 查看器等功能。
Trigger Scenarios
需要验证核心逻辑变更后的系统稳定性
执行完整的端到端回归测试
Install
npx skills add liaohch3/claude-tap --skill e2e-test -g -y
SKILL.md
Frontmatter
{
"name": "e2e-test",
"description": "Run claude-tap end-to-end tests with pytest",
"user_invocable": true
}
claude-tap E2E Test
Run this skill after modifying core logic in claude-tap, especially:
- Proxy handler / SSE reassembly (
__init__.py) - TraceWriter (JSONL writing, flush behavior)
- HTML viewer generation (
viewer.html,_generate_html_viewer) - LiveViewerServer (SSE streaming)
- Signal handling / graceful shutdown
- Manual update command / trace cleanup
Steps
- Run the full test suite:
uv run pytest tests/test_e2e.py -v --timeout=120
Or run a single test:
uv run pytest tests/test_e2e.py::test_e2e -v # Full E2E pipeline
uv run pytest tests/test_e2e.py::test_trace_cleanup -v # Trace cleanup
uv run pytest tests/test_e2e.py::test_startup_does_not_contact_pypi -v # No startup update network
-
Read the output. Each test prints
PASSEDorFAILED. -
If tests fail, check:
- test_e2e fails: Core proxy pipeline issue. Check
proxy_handler,_handle_streaming,TraceWriter.write. - test_trace_cleanup fails: Manifest logic issue. Check
_load_manifest,_cleanup_traces,_register_trace. - test_startup_does_not_contact_pypi fails: Startup made an unexpected update-related network request.
- test_live_viewer_ fails*: Viewer HTML issues. Check
viewer.htmlforpreserveDetailchain,updateNavButtons. - Timeout: May be a network/port issue, not a claude-tap bug.
- test_e2e fails: Core proxy pipeline issue. Check
Version History
-
39f96f0
Current 2026-07-19 18:53
重构更新模块:移除了自动启动版本检查和后台包升级功能,保留显式的 claude-tap 更新命令。相应地将版本检查相关测试替换为无启动网络请求测试。
- 7170ab3 2026-07-05 15:20


