You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(test): emit auto-minted idempotency-key under --output json in rerun and run --all
test run, test create, create-batch, plan put, code put, update, and
delete all print the auto-minted idempotency key to stderr under
--output json (as well as --verbose / --debug) so JSON-mode automation
can capture the key and replay a retry safely. test rerun and
test run --all minted a key but only echoed it under --debug /
--verbose, so CI flows using --output json silently lost it.
Align both paths with the shared guard used by every other minting
site, and cover the JSON-mode emission (and the text-mode silence)
with regression tests.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: DOCUMENTATION.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -346,7 +346,7 @@ testsprite test run test_xxxxxxxx --target-url https://staging.example.com \
346
346
testsprite test run test_xxxxxxxx --dry-run --output json
347
347
```
348
348
349
-
`--target-url` must be a publicly reachable URL — the CLI pre-flights it against local addresses (`localhost`, `127.x`, `::1`, `0.0.0.0`, `169.254.x`, RFC1918) and the backend resolves it via DNS. For testing against localhost, use the [TestSprite MCP plugin](https://www.testsprite.com/docs), which handles the local tunnel. The CLI auto-mints an idempotency key (printed to stderr at`--verbose`); pass `--idempotency-key <uuid>` to control it explicitly.
349
+
`--target-url` must be a publicly reachable URL — the CLI pre-flights it against local addresses (`localhost`, `127.x`, `::1`, `0.0.0.0`, `169.254.x`, RFC1918) and the backend resolves it via DNS. For testing against localhost, use the [TestSprite MCP plugin](https://www.testsprite.com/docs), which handles the local tunnel. The CLI auto-mints an idempotency key (printed to stderr under`--output json`, `--verbose`, or `--debug`); pass `--idempotency-key <uuid>` to control it explicitly.
350
350
351
351
#### `testsprite test rerun [test-id...]`
352
352
@@ -376,7 +376,7 @@ Flags:
376
376
-`--auto-heal` / `--no-auto-heal` — frontend AI heal-on-drift, **on by default** for FE reruns; opt out with `--no-auto-heal`. Verbatim-replay passes are free; a heal engage costs a small amount of credit. Ignored for backend tests.
377
377
-`--skip-dependencies` — backend only: rerun just the named test without expanding the producer/teardown closure.
378
378
-`--max-concurrency <n>` — with `--wait`, cap on in-flight polls during a batch rerun.
379
-
-`--idempotency-key <key>` — auto-minted when omitted.
379
+
-`--idempotency-key <key>` — auto-minted when omitted (the minted key is printed to stderr under `--output json`, `--verbose`, or `--debug`).
380
380
381
381
A batch rerun returns `accepted[]` (one `runId` per dispatched test) plus `deferred[]` for any test shed by the per-key run-rate limit; under `--wait`, a non-empty `deferred[]` exits 7 with a `nextAction` you can retry with a fresh idempotency key.
0 commit comments