Skip to content

[Hackathon] TESTSPRITE_PROJECT_ID env default for --project #76

Description

@Andy00L

Discord Username / User ID

interferon0

What does this improvement do?

Let an agent or CI set the project once instead of repeating --project on every project-scoped command. test list, test create, and test run --all fall back to the TESTSPRITE_PROJECT_ID environment variable when --project is omitted. The explicit flag still takes precedence; when neither is set the command fails with the typed VALIDATION_ERROR (exit 5) as before.

Details / implementation notes

: Resolver requireProjectId in src/commands/test.ts applied at the three call sites; env var documented in DOCUMENTATION.md. Tests cover env default, flag-over-env precedence, and the neither-set error. 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

hackathonCLI hackathon submissionsin-progressAssigned and actively being worked on

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions