diff --git a/DOCUMENTATION.md b/DOCUMENTATION.md index 03b41d6c..e702d2ab 100644 --- a/DOCUMENTATION.md +++ b/DOCUMENTATION.md @@ -206,9 +206,9 @@ Read the current project instructions here before replacing them with `project u When the server supplies an environment summary, text detail shows `defaultEnv: ` and `envs: `, with a `testsprite project env list ` hint for a positive count. A reported null default shows `-`; older servers omit both lines. JSON preserves the server's fields without adding missing values. -#### `testsprite test list --project ` +#### `testsprite test list [--project ]` -List the project's test cases as they are written. `--project` is required. Cursor-paginated. Each row is the case alone: `id`, `slug`, `title`, `type`, `category`, `priority`, `version` and `stepCount`; a result is never part of it (`testsprite result list --test --limit 1` reads the latest non-cancelled one). Text output has the ID / SLUG / TITLE / TYPE / CATEGORY / PRIORITY / VERSION / STEPS / UPDATED columns. +List the project's test cases as they are written. A nonblank `--project` takes precedence over `TESTSPRITE_PROJECT_ID`. If you omit the flag, the CLI uses `TESTSPRITE_PROJECT_ID`. With neither value set, the command exits 5 (or 3 when no API key is configured). Cursor-paginated. Each row is the case alone: `id`, `slug`, `title`, `type`, `category`, `priority`, `version` and `stepCount`; a result is never part of it (`testsprite result list --test --limit 1` reads the latest non-cancelled one). Text output has the ID / SLUG / TITLE / TYPE / CATEGORY / PRIORITY / VERSION / STEPS / UPDATED columns. ```bash testsprite test list --project "$PROJECT_ID" --output json