Skip to content

Rust CLI: test coverage for synapse graphql query #691

Description

@Mac-5

Description
Add integration tests for synapse graphql query (implemented in Issue #86) against the mock HTTP server from Issue #64.

Scope guardrail: this PR must only touch files under cli/synapse-cli/. Do not touch anything under src/ — read the handler referenced below only to learn the request/response contract.

Requirements and context

Suggested execution

  1. Fork the repo and create a branch
    git checkout -b feature/rust-cli-test-coverage-for-synapse-graphql-query
  2. Implement changes
    • Spin up the shared mock server fixture and stub the relevant endpoint(s).
    • Run the subcommand as a subprocess (or via the crate's test entrypoint) and assert on exit code + output.
    • Cover both --json and default table output.
  3. Test and commit
    • Run the crate's test command and confirm it's green
    • Example commit message: test(cli): add coverage for graphql subcommand

Guidelines

  • Assignment required before starting
  • PR description must include: Closes #87
  • PR must only touch files under cli/synapse-cli/
  • Complexity: High (200 points) — Every issue in this Wave is tagged High — full points regardless of individual scope.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions