|
|
2cb10eb749
|
perf(e2e): 并行化 E2E 测试,从 ~2h 降至 ~102s
- testutil: 用 sync.Once 缓存 LollyImageAvailable 结果
- testutil: 原子计数器替代时间戳避免容器名竞态
- testutil: SetupProxyTest 接受 suffix 参数生成独立 Docker 网络
- testutil: CleanupProxyTest 显式调用 network.Remove() 清理
- testutil: 移除死代码 SetupProxyTestEnv/ProxyTestEnv
- testutil: HealthCheckWaitTimeout 30s→15s, DefaultTestTimeout 180s→120s
- e2e: 所有 107 个测试函数添加 t.Parallel()
- e2e: 替换 65 处硬编码 30*time.Second 为常量
- make: test-all 三类测试并行运行,显式 PID wait 收集退出码
- make: test-e2e 添加 -parallel 4 flag
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-04-28 13:19:46 +08:00 |
|
|
|
1be6480f5c
|
feat(e2e): 添加重试机制和测试覆盖率支持
- 新增 testutil/retry.go 提供重试工具函数
- WaitForCondition: 等待条件满足
- WaitForNoError: 等待操作无错误
- WaitForHealthy: 等待服务健康
- Poll: 简化轮询接口
- 新增 testutil/retry_test.go 单元测试
- container.go 添加 Logs() 方法用于诊断
- Makefile 新增 test-e2e-cover 和 test-e2e-short 目标
- 重构 healthcheck 和 loadbalance 测试使用重试机制
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-04-27 16:07:17 +08:00 |
|
|
|
2ffcfd782b
|
style(e2e): 清理代码格式和未使用的导入
- 删除 loadbalance_e2e_test.go 中未使用的 encoding/json 导入
- 删除 ssl_e2e_test.go 中未使用的 net/http 导入
- 格式化 testutil/config.go 中的结构体字段对齐
- 为多个文件添加末尾换行符
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-04-23 15:36:42 +08:00 |
|
|
|
9eaa77478a
|
test(e2e): 添加缓存、健康检查、负载均衡和 WebSocket E2E 测试
扩展 SSL E2E 测试覆盖更多场景。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-04-23 14:51:25 +08:00 |
|