Skip to content

Add CLI Integration Tests Using Mock Stellar Binary for Isolated Testing #336

Description

@ALLEN-AYODEJI

Add CLI Integration Tests Using Mock Stellar Binary for Isolated Testing

Description

CLI commands have no integration tests because they depend on stellar CLI. Running tests against a real stellar CLI requires testnet tokens. A mock stellar binary would enable comprehensive CLI testing without external dependencies.

Requirements & Context

Create mock stellar binary that returns canned responses. Add integration test suite. Cover all 8 commands, error handling, and output modes.

Suggested Execution

Branch: eat/test/cli-integration-mock-stellar

Implement Changes

(1) Create mock_stellar.sh/bat for test fixture (2) Add PATH override in tests (3) Write tests for each command (4) Test error paths and retry logic

Test & Commit

Run CLI integration tests with mock binary, verify all commands produce expected output.

Example Commit Message

est(cli): add CLI integration tests using mock stellar binary for isolated command testing

Guidelines

  • Create platform-specific mock binaries
  • Use PATH override in test setup

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions