Skip to content

test(e2e): configurable real API key for live tool-integration e2e + wire into CI#95

Merged
jeff-r2026 merged 1 commit into
Tencent:feat/e2e-cli-coveragefrom
jeff-r2026:e2e-real-apikey
Jul 1, 2026
Merged

test(e2e): configurable real API key for live tool-integration e2e + wire into CI#95
jeff-r2026 merged 1 commit into
Tencent:feat/e2e-cli-coveragefrom
jeff-r2026:e2e-real-apikey

Conversation

@jeff-r2026

Copy link
Copy Markdown
Collaborator

Summary

  • Builds on test(e2e): full command-surface coverage + live AI-tool hook integration #87 — decouples the live claude/codebuddy hook-integration e2e from ambient interactive login by making the Anthropic API key and base URL configurable via TEAMAI_E2E_ANTHROPIC_API_KEY / TEAMAI_E2E_ANTHROPIC_BASE_URL.
  • Broadens the assertion from just session_start to the full hook lifecycle: session_start, prompt_submit, tool_use (PostToolUse), stop.
  • Adds a new e2e-live-tools GitHub Actions job that installs the real claude/codebuddy CLIs from public npm and runs this suite for real, gated behind the TEAMAI_E2E_ANTHROPIC_API_KEY secret so it no-ops on forks/PRs without it configured.

Test plan

  • npx tsc --noEmit
  • npm run test:e2e:live locally against a real Anthropic-compatible endpoint — claude and codebuddy both pass (full hook lifecycle verified end-to-end); cursor skips gracefully (not logged in)
  • Repo owner configures TEAMAI_E2E_ANTHROPIC_API_KEY secret (and optionally TEAMAI_E2E_ANTHROPIC_BASE_URL / TEAMAI_E2E_CLAUDE_MODEL variables) so the new e2e-live-tools CI job runs on GitHub Actions

🤖 Generated with Claude Code

…wire into CI

Decouple the live claude/codebuddy hook-integration e2e from ambient
interactive login by making the Anthropic API key and base URL
configurable via TEAMAI_E2E_ANTHROPIC_API_KEY / TEAMAI_E2E_ANTHROPIC_BASE_URL,
broaden the assertion to cover the full hook lifecycle (session_start,
prompt_submit, tool_use, stop), and add an e2e-live-tools CI job that
runs it on GitHub Actions when the corresponding secret is configured.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@jeff-r2026 jeff-r2026 merged commit d2c9acc into Tencent:feat/e2e-cli-coverage Jul 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant