Skip to content

[Hackathon] Add a "doctor" command to diagnose CLI setup #73

Description

@Andy00L

Discord Username / User ID

interferon0

What does this improvement do?

Add testsprite doctor: a one-shot diagnostic that checks CLI version, Node.js runtime, active profile, API endpoint, credentials, live connectivity (GET /me), and whether the verify skill is installed. It prints an OK/WARN/FAIL report and exits non-zero when any check fails, so it works as a CI or agent preflight (testsprite doctor && testsprite test run ...). The API key is never printed.

Details / implementation notes

New command in src/commands/doctor.ts, reusing existing helpers (loadConfig, makeHttpClient, assertValidEndpointUrl, isVerifySkillInstalled) so the report matches what a real command resolves. 12 unit tests. Registered in src/index.ts; root --help snapshot updated. Full gate green. PR to follow once assigned.

Confirmations

  • I have searched existing issues and this is not a duplicate.
  • I have provided my Discord identity above for reward coordination.

Metadata

Metadata

Assignees

Labels

hackathonCLI hackathon submissionsin-progressAssigned and actively being worked on

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