Skip to content

Add fixture-based tests for provider usage parsing #5

Description

@rain2day

Goal

Add tests around Codex and Claude usage parsing without using real credentials or network calls.

Why

Provider usage endpoints may change. Parser fixtures would make maintenance safer and help contributors avoid breaking Codex-only, Claude-only, and combined modes.

Scope

  • Extract parser logic or add a small test harness that can run from CI.
  • Use sanitized JSON fixtures only.
  • Cover reset times, session usage, weekly usage, plan labels, and combined provider fallback.

Done When

  • CI can run parser checks without local credentials.
  • Docs mention where sanitized fixtures live.

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

    Labels

    provider-claudeClaude credentials, rate limits, or peak/off-peak behaviorprovider-codexCodex state, auth, usage, or refresh behavior

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions