Skip to content

[task] Add GitHub API fixture tests #10

@phongndo

Description

@phongndo

Goal

Add test fixtures for GitHub API responses used by the first app-server data methods.

Why this matters

Contributors should be able to develop issue, PR, checks, and review behavior without needing live GitHub access for every test.

Command/API target

Create a focused fixture pattern for recorded or hand-written GitHub REST/GraphQL response payloads used by the Rust mapping layer.

Depends on

Out of scope

  • Do not add a full HTTP mocking framework unless needed.
  • Do not require network access in normal tests.
  • Do not build UI tests here.

Definition of done

  • Fixture examples cover at least issue, PR, checks, and review-thread shaped payloads.
  • Mapping tests can run without live GitHub credentials.
  • The fixture pattern is documented enough for later contributors to copy.

Verification

  • cargo fmt --all --check
  • cargo test --workspace

Contributor notes

This is maintainer-owned until the fixture approach is stable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: testsAutomated tests and test infrastructure.kind: maintenanceRepository maintenance or infrastructure work.maintainer onlyRepository administration or governance work reserved for maintainers.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions