Skip to content

Comments

Add tests for cli entrypoint#122

Open
kalenkevich wants to merge 3 commits intomainfrom
chore/test_coverage_improvements_cli
Open

Add tests for cli entrypoint#122
kalenkevich wants to merge 3 commits intomainfrom
chore/test_coverage_improvements_cli

Conversation

@kalenkevich
Copy link
Collaborator

@kalenkevich kalenkevich commented Feb 6, 2026

Summary

Refactors the CLI entrypoint to improve testability and adds comprehensive unit tests for all CLI commands.

Changes

  • Refactor CLI Entrypoint: Modified dev/src/cli/cli.ts to export a createProgram function instead of executing immediately. This allows the CLI configuration to be tested in isolation.
  • New Entrypoint File: Created dev/src/cli_entrypoint.ts as the new executable entry point that invokes createProgram.
  • Test Coverage: Added dev/test/cli/cli_test.ts achieving high coverage for:
    • version command
    • web command (AdkWebServer options)
    • api_server command
    • create command (Agent creation options)
    • run command (Agent execution options)
    • deploy cloud_run command

@kalenkevich kalenkevich force-pushed the chore/test_coverage_improvements_cli branch from 6f5d329 to 5d6a146 Compare February 10, 2026 23:52
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.

3 participants