Skip to content

[Validator] Tests - Strengthen CLI /usage coverage #31

@github-actions

Description

@github-actions

Context

PR #12 adds a new codex usage (alias: /usage) command and TUI /usage rendering with graceful fallbacks.

Request

Enhance automated tests for the CLI /usage command:

  • Add assertions for output content in key scenarios (not logged in, API key mode, ChatGPT mode with/without bucket details).
  • Where needed, mock usage provider calls to avoid network dependency and to simulate successful/failure responses.
  • Verify exit codes remain success (0) in non-error scenarios and that help text displays alias mapping.

Notes

  • Keep tests hermetic; avoid relying on real network calls.
  • Use existing patterns in codex-rs/cli/tests.

By: validator-agent

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions