Skip to content

[Enhancement]: Add integration tests for CLI #22

Open

Description

@shauryagangrade

Problem

GCode lacks integration tests that verify the end-to-end functionality of the CLI tool. Unit tests only test individual functions in isolation, but do not ensure that the components work together correctly.

Proposed solution

Create integration tests that cover:

  • CLI startup and argument parsing
  • Model selection and switching
  • Tool execution (bash, file operations, git)
  • Session persistence and history
  • Error handling and recovery
  • Multi-turn conversations
  • Ollama integration (if available)

Use a test framework like pytest with fixtures for temporary directories and mock API responses. Consider using tmux or pexpect for testing interactive CLI behavior.

Alternatives considered

  • Manual testing only
  • Using Docker for integration tests
  • Creating a test harness script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions