@testsprite/testsprite-cli 0.17.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -4
- package/dist/commands/auth.js +2 -2
- package/dist/commands/conversation.js +52 -13
- package/dist/commands/project-env.js +48 -8
- package/dist/commands/project.d.ts +4 -0
- package/dist/commands/project.js +19 -2
- package/dist/commands/result.js +2 -1
- package/dist/commands/test.d.ts +9 -31
- package/dist/commands/test.js +73 -159
- package/dist/commands/testlist.d.ts +4 -2
- package/dist/commands/testlist.js +32 -4
- package/dist/commands/tunnel.d.ts +3 -3
- package/dist/commands/tunnel.js +3 -4
- package/dist/index.js +9 -6
- package/dist/lib/client-factory.d.ts +2 -2
- package/dist/lib/client-factory.js +3 -4
- package/dist/lib/conversation/api.d.ts +4 -0
- package/dist/lib/conversation/api.js +1 -0
- package/dist/lib/conversation/context.d.ts +10 -0
- package/dist/lib/conversation/context.js +17 -5
- package/dist/lib/conversation/environment.d.ts +3 -2
- package/dist/lib/conversation/environment.js +5 -17
- package/dist/lib/conversation/render.js +3 -0
- package/dist/lib/conversation/types.d.ts +2 -0
- package/dist/lib/download.d.ts +30 -1
- package/dist/lib/download.js +205 -71
- package/dist/lib/environment-tunnel.d.ts +3 -3
- package/dist/lib/environment-tunnel.js +9 -50
- package/dist/lib/first-suite-hint.d.ts +9 -13
- package/dist/lib/first-suite-hint.js +29 -35
- package/dist/lib/http.d.ts +1 -1
- package/dist/lib/http.js +5 -5
- package/dist/lib/local-target.d.ts +5 -4
- package/dist/lib/local-target.js +11 -10
- package/dist/lib/output.d.ts +1 -1
- package/dist/lib/output.js +2 -2
- package/dist/lib/presigned-url.js +2 -2
- package/dist/lib/removed-commands.js +17 -1
- package/dist/lib/result/evidence.d.ts +2 -0
- package/dist/lib/result/evidence.js +2 -0
- package/dist/lib/run-output.d.ts +3 -3
- package/dist/lib/target-url.d.ts +7 -7
- package/dist/lib/target-url.js +8 -8
- package/dist/lib/telemetry.d.ts +4 -4
- package/dist/lib/telemetry.js +1 -1
- package/dist/lib/transport-failure.js +2 -2
- package/dist/lib/tunnel-session.d.ts +1 -1
- package/dist/lib/tunnel-session.js +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/skills/testsprite-ci.skill.md +4 -5
- package/skills/testsprite-onboard.skill.md +14 -12
- package/skills/testsprite-verify.codex.md +12 -14
- package/skills/testsprite-verify.skill.md +19 -21
package/dist/lib/telemetry.d.ts
CHANGED
|
@@ -42,8 +42,8 @@ export interface TelemetryOutcomeInput extends Partial<WaitTimeoutTelemetry> {
|
|
|
42
42
|
output?: string;
|
|
43
43
|
dryRun?: boolean;
|
|
44
44
|
/**
|
|
45
|
-
* True when --local was present, including refusals
|
|
46
|
-
* or when this invocation
|
|
45
|
+
* True when --local was present (project env create), including refusals,
|
|
46
|
+
* or when this invocation opened a tunnel to a local environment.
|
|
47
47
|
*/
|
|
48
48
|
local?: boolean;
|
|
49
49
|
}
|
|
@@ -172,7 +172,7 @@ export declare function sanitizeTelemetryExtras(partial: TelemetryExtrasInput):
|
|
|
172
172
|
* never widen the wire contract from here.
|
|
173
173
|
*/
|
|
174
174
|
export declare function recordTelemetryExtras(partial: TelemetryExtrasInput): void;
|
|
175
|
-
/** Extend explicit --local telemetry to commands that
|
|
175
|
+
/** Extend explicit --local telemetry to commands that open a tunnel to a local environment. */
|
|
176
176
|
export declare function recordTelemetryTunnelOpened(opened: boolean): void;
|
|
177
177
|
/** Return everything recorded so far and clear the sink (one event per process). */
|
|
178
178
|
export declare function takeTelemetryExtras(): TelemetryExtras;
|
|
@@ -219,7 +219,7 @@ export interface TelemetryEvent extends Partial<WaitTimeoutTelemetry>, Telemetry
|
|
|
219
219
|
nodeVersion?: string;
|
|
220
220
|
output?: string;
|
|
221
221
|
ci?: boolean;
|
|
222
|
-
/** Present (always `true`) for --local attempts or
|
|
222
|
+
/** Present (always `true`) for --local attempts or runs that opened a tunnel. */
|
|
223
223
|
local?: boolean;
|
|
224
224
|
/** The validated `TESTSPRITE_CLIENT` tag (e.g. `github-action/v1`); absent when unset/invalid. */
|
|
225
225
|
client?: string;
|
package/dist/lib/telemetry.js
CHANGED
|
@@ -222,7 +222,7 @@ let pendingExtras = {};
|
|
|
222
222
|
export function recordTelemetryExtras(partial) {
|
|
223
223
|
pendingExtras = { ...pendingExtras, ...sanitizeTelemetryExtras(partial) };
|
|
224
224
|
}
|
|
225
|
-
/** Extend explicit --local telemetry to commands that
|
|
225
|
+
/** Extend explicit --local telemetry to commands that open a tunnel to a local environment. */
|
|
226
226
|
export function recordTelemetryTunnelOpened(opened) {
|
|
227
227
|
if (opened)
|
|
228
228
|
recordTelemetryExtras({ local: true });
|
|
@@ -115,10 +115,10 @@ export function classifyFatalTransportFailure(error, targetUrl) {
|
|
|
115
115
|
return {
|
|
116
116
|
cause: hostname,
|
|
117
117
|
message: `TLS certificate verification failed for ${host} (${hostname}): the certificate is not ` +
|
|
118
|
-
'valid for that host. A wrong
|
|
118
|
+
'valid for that host. A wrong host or corporate TLS ' +
|
|
119
119
|
"interception is the usual cause; set NODE_EXTRA_CA_CERTS to your organisation's CA " +
|
|
120
120
|
'bundle if your network re-signs TLS.',
|
|
121
|
-
nextAction: `Check
|
|
121
|
+
nextAction: `Check that ${host} is the host you expect. ${TLS_NEXT_ACTION}`,
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
return undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Lifecycle of one
|
|
2
|
+
* Lifecycle of one local-environment tunnel: mint → connect → (run) → tear down.
|
|
3
3
|
*
|
|
4
4
|
* The credential handling is the point of this module, so it is stated once
|
|
5
5
|
* here rather than repeated at every line that touches it. The secret returned
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Lifecycle of one
|
|
2
|
+
* Lifecycle of one local-environment tunnel: mint → connect → (run) → tear down.
|
|
3
3
|
*
|
|
4
4
|
* The credential handling is the point of this module, so it is stated once
|
|
5
5
|
* here rather than repeated at every line that touches it. The secret returned
|
|
@@ -238,7 +238,7 @@ export async function openTunnelSession(options, deps) {
|
|
|
238
238
|
...(minted.tunnelTlsAddr !== undefined ? { tunnelTlsAddr: minted.tunnelTlsAddr } : {}),
|
|
239
239
|
dataPlaneRetryDeadlineMs: DEFAULT_DATA_PLANE_RETRY_DEADLINE_MS,
|
|
240
240
|
logLevel: options.logLevel ?? 'error',
|
|
241
|
-
// Never opened up. The point of
|
|
241
|
+
// Never opened up. The point of the tunnel is the caller's own loopback;
|
|
242
242
|
// a run that pivots into the rest of their network is the failure this
|
|
243
243
|
// rail exists to stop. Loopback and public targets are unaffected.
|
|
244
244
|
allowPrivateNetworkTarget: false,
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.18.0";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -115,8 +115,7 @@ gh secret set TESTSPRITE_API_KEY # paste when prompted, or pipe on stdin
|
|
|
115
115
|
```
|
|
116
116
|
|
|
117
117
|
(`ci init github --set-secret` does the same.) Never put the key in argv, YAML or
|
|
118
|
-
logs.
|
|
119
|
-
B also needs the platform's deploy token as a secret.
|
|
118
|
+
logs. B also needs the platform's deploy token as a secret.
|
|
120
119
|
|
|
121
120
|
## 5. Preflight, then prove it on one real pull request
|
|
122
121
|
|
|
@@ -170,9 +169,9 @@ deployments are filtered out by the `if:`).
|
|
|
170
169
|
URL) — which in a pull request is the preview, because `ci run --env X --target-url U`
|
|
171
170
|
runs in a `github-pr-<N>` clone of X at U. Outside a pull request they use the environment's
|
|
172
171
|
own URL (`--env`'s, or the default's). A hard-coded URL is left as is and always tests that address.
|
|
173
|
-
- Testing `ci run` locally: a shell that exports `
|
|
174
|
-
|
|
175
|
-
|
|
172
|
+
- Testing `ci run` locally: a shell that exports `TESTSPRITE_API_KEY` overrides the
|
|
173
|
+
key `--profile` selects — an unexpected auth failure is usually that. Check
|
|
174
|
+
which are set first, without printing the key: `env | grep -o '^TESTSPRITE_[A-Z_]*'`.
|
|
176
175
|
|
|
177
176
|
## Don'ts
|
|
178
177
|
|
|
@@ -63,12 +63,13 @@ testsprite project env create <projectId> --name default --url <app-url> \
|
|
|
63
63
|
Local frontend (start the app first):
|
|
64
64
|
|
|
65
65
|
```bash
|
|
66
|
-
testsprite project env create <projectId> --name local --
|
|
66
|
+
testsprite project env create <projectId> --name local --url http://localhost:<port>
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
`--
|
|
70
|
-
|
|
71
|
-
`--
|
|
69
|
+
`--url` also takes `http://127.0.0.1:<port>` or `http://[::1]:<port>`, and the app's
|
|
70
|
+
entry path may follow (`--url http://localhost:<port>/app`); `--local <port>` is shorthand
|
|
71
|
+
for `--url http://localhost:<port>`. Dead port: exit 5 (`--skip-preflight` bypasses).
|
|
72
|
+
A backend project can't be local: its environment must point at a publicly deployed API.
|
|
72
73
|
Local runs work on Free and need `run:tunnel` (mint a new key if missing).
|
|
73
74
|
|
|
74
75
|
With a frontend test account, the cloud agent logs in through the tunnel using the
|
|
@@ -98,8 +99,9 @@ testsprite plan "Seed a first suite: <the 4–8 flows from step 1>" --project <p
|
|
|
98
99
|
[--file ./openapi.yaml] [--file ./prd.md] [--diff] --output json
|
|
99
100
|
```
|
|
100
101
|
|
|
101
|
-
- Frontend: the agent explores the
|
|
102
|
-
|
|
102
|
+
- Frontend: the agent explores the app in a real browser. An app on this machine is reached
|
|
103
|
+
through a tunnel: when the agent asks for one, run `testsprite tunnel start` in another
|
|
104
|
+
terminal and `testsprite reply "The tunnel is running."`.
|
|
103
105
|
- `"state": "replied"` → read `reply`; answer from the code what you can with
|
|
104
106
|
`testsprite reply "..."`, ask the user only what only they know.
|
|
105
107
|
- Exit 7: still working; `testsprite status --wait` follows it.
|
|
@@ -129,15 +131,15 @@ and run only those:
|
|
|
129
131
|
|
|
130
132
|
```bash
|
|
131
133
|
testsprite run <test-id> --wait # deployed target
|
|
132
|
-
testsprite run <test-id> --
|
|
134
|
+
testsprite run <test-id> --env local # local frontend
|
|
133
135
|
```
|
|
134
136
|
|
|
135
137
|
Do **not** run the whole suite automatically. Frontend runs, including local runs,
|
|
136
138
|
cost 0.5 credit each; check `testsprite usage` before sizing the suite.
|
|
137
|
-
Local runs wait (1200 s each). Put several in ONE `run <id> <id> --local
|
|
139
|
+
Local runs wait (1200 s each). Put several in ONE `run <id> <id> --env local`
|
|
138
140
|
(one tunnel, 5 at a time; each process holds 1 of 5 tunnel slots). Keep the stderr
|
|
139
141
|
`Run <run-id>` receipt. An owned local timeout cancels by default: start a new run with
|
|
140
|
-
`--
|
|
142
|
+
`--env local --timeout 1800`, not `run wait`. For a frontend test cancelled before a terminal verdict the server attempts a refund; read the reported `refund`.
|
|
141
143
|
|
|
142
144
|
### 5. Report
|
|
143
145
|
|
|
@@ -147,12 +149,12 @@ Tell the user, plainly:
|
|
|
147
149
|
- "I smoke-ran **M** — here's the result: <pass/fail + the dashboard link from the run output>."
|
|
148
150
|
- "To run the rest (≈X credits, so they choose knowingly):
|
|
149
151
|
- frontend — use `run <test-id> --wait` for deployed targets or
|
|
150
|
-
`run --project <id> --
|
|
152
|
+
`run --project <id> --env local` for local targets;
|
|
151
153
|
- backend — `testsprite run --project <id>` (wave-ordered, runs every BE test)."
|
|
152
154
|
|
|
153
155
|
## Quality checklist (self-check before reporting done)
|
|
154
156
|
|
|
155
|
-
- [ ] FE project has a public
|
|
157
|
+
- [ ] FE project has a public or local (`http://localhost:<port>`) `--url`; login configured if needed.
|
|
156
158
|
- [ ] API project: the API spec attached to the request (a PRD is optional, alongside it).
|
|
157
159
|
- [ ] You **read the plan** and rejected or excluded the tests that don't fit,
|
|
158
160
|
rather than applying it unseen.
|
|
@@ -166,7 +168,7 @@ Tell the user, plainly:
|
|
|
166
168
|
- Don't auto-run the full suite (credit wall / surprise 402).
|
|
167
169
|
- Don't apply narrative assertions an AI judge can't fail.
|
|
168
170
|
- Don't call backend endpoints directly — only the `testsprite` CLI.
|
|
169
|
-
- Don't create a FE project without public
|
|
171
|
+
- Don't create a FE project without a public or local (`http://localhost:<port>`) `--url`.
|
|
170
172
|
- Don't apply a plan unread — reviewing it is the point of the proposal.
|
|
171
173
|
- Don't write or edit tests yourself — ask the agent (`reply`, `reject`, or a new `plan`).
|
|
172
174
|
|
|
@@ -18,10 +18,10 @@ For a local app without a project:
|
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
20
|
testsprite project create --type frontend --name "<repo name>"
|
|
21
|
-
testsprite project env create <projectId> --name local --
|
|
21
|
+
testsprite project env create <projectId> --name local --url http://localhost:<port>
|
|
22
22
|
testsprite plan "<what you built>" --diff --project <projectId>
|
|
23
23
|
testsprite apply
|
|
24
|
-
testsprite run --project <projectId> --
|
|
24
|
+
testsprite run --project <projectId> --env local --output json
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
Portal runs of a local environment are blocked free until a public environment is
|
|
@@ -31,8 +31,8 @@ For a deployed app, `project env create … --url` is the only environment neede
|
|
|
31
31
|
## 2. Run against the change
|
|
32
32
|
|
|
33
33
|
The CLI does not host apps. Create a deployed environment once; select it with
|
|
34
|
-
`--env <name>` or omit for Default. Unknown names list valid names.
|
|
35
|
-
|
|
34
|
+
`--env <name>` or omit for Default. Unknown names list valid names. A local
|
|
35
|
+
environment opens a tunnel from this machine (FE only).
|
|
36
36
|
|
|
37
37
|
You don't write or edit tests. New tests (frontend or backend): ask the
|
|
38
38
|
project's agent, show the user its plan, apply it, run the saved ids. A test
|
|
@@ -55,13 +55,11 @@ testsprite run <test-id> --testlist <listId> --wait
|
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
- Supported backends grant existing keys `run:tunnel`; a narrowed key without it
|
|
58
|
-
exits 3. Free-plan local runs work. BE cannot
|
|
59
|
-
-
|
|
60
|
-
`
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
`--target-url` cannot combine with `--local`.
|
|
64
|
-
- Run local ids together in one `run`; `run --project <id> --local <port>` skips BE tests. One run per project, one tunnel, 5 tests at once per execution by default
|
|
58
|
+
exits 3. Free-plan local runs work. BE cannot run through a tunnel.
|
|
59
|
+
- A tunnel run implies `--wait` (shared 1200 s deadline; public: 600). A dead port exits 5 before charge;
|
|
60
|
+
`--skip-preflight` skips the probe. Environment `--url` rejects private (non-loopback) hosts;
|
|
61
|
+
the app's entry path may follow the port. `--env` keeps its sign-in settings.
|
|
62
|
+
- Run local ids together in one `run`; `run --project <id> --env local` skips BE tests. One run per project, one tunnel, 5 tests at once per execution by default
|
|
65
63
|
(`--max-concurrency` 1–15, a server dispatch cap only). Each distinct run is waited on independently. Five live bindings per user; `tunnel_binding_limit`
|
|
66
64
|
exits 11 without retry. Use `tunnel list` then `tunnel stop <id>` or `--all --confirm`.
|
|
67
65
|
- Keep each run's `Run <id>` line and its stdout `Dashboard:` link (a no-wait `--testlist` launch has none until `run wait`). All waits return `runs[].runId`,
|
|
@@ -71,10 +69,10 @@ testsprite run <test-id> --testlist <listId> --wait
|
|
|
71
69
|
closes the tunnel. Before a terminal FE verdict, the backend attempts a refund;
|
|
72
70
|
check `refund.status`: cancellation does not guarantee a refund.
|
|
73
71
|
`--no-cancel-on-interrupt` detaches, but the owned tunnel still closes.
|
|
74
|
-
- After an owned timeout, start a **new** `run <test-id> --
|
|
75
|
-
--timeout 1800
|
|
72
|
+
- After an owned timeout, start a **new** `run <test-id> --env <name>
|
|
73
|
+
--timeout 1800`. `run wait` cannot reopen the tunnel;
|
|
76
74
|
ordinary/adopted waits can resume with `run wait <run-id>` if reachable.
|
|
77
|
-
- Keep `tunnel start` alive; borrow with `--
|
|
75
|
+
- Keep `tunnel start` alive; borrow with `--env <name> --tunnel-client <uuid>`.
|
|
78
76
|
Adopted runs normally detach without cancellation or closing the owner's tunnel.
|
|
79
77
|
If the owner has disappeared during a run, cancellation is requested by default;
|
|
80
78
|
`--no-cancel-on-interrupt` skips it. A second connection with the same credential
|
|
@@ -23,14 +23,14 @@ deploy the preview/staging environment). Create a named environment for its
|
|
|
23
23
|
public URL once, then select it with `--env <name>` on runs. Running earlier
|
|
24
24
|
verifies the previous build, not your change.
|
|
25
25
|
|
|
26
|
-
For a change that is only running locally, don't wait for a deployment:
|
|
27
|
-
`testsprite
|
|
26
|
+
For a change that is only running locally, don't wait for a deployment: save the
|
|
27
|
+
app on this machine as an environment (`testsprite project env create <projectId> --name local --url http://localhost:<port>`)
|
|
28
|
+
and run on it with `testsprite run <test-id> --env local`. The run tunnels this
|
|
28
29
|
machine's own loopback address (`localhost` / `127.0.0.1` / `::1` — not a LAN
|
|
29
30
|
or RFC1918 address, and not a general local-network escape hatch) to the test
|
|
30
31
|
runner. It is for frontend tests only (a backend test reaches its API over HTTP from
|
|
31
32
|
the runner, so run it normally against a deployed environment). Existing API keys work for local runs; no replacement key is
|
|
32
|
-
needed.
|
|
33
|
-
`--env <name> --local <port>`. Check the name with
|
|
33
|
+
needed. The environment's sign-in settings apply to the local app. Check the name with
|
|
34
34
|
`testsprite project env list <projectId>`.
|
|
35
35
|
|
|
36
36
|
If the user explicitly named a tool (the CLI or the MCP), honor that choice
|
|
@@ -99,18 +99,18 @@ ask the agent for tests, and run the ids `apply` saved:
|
|
|
99
99
|
|
|
100
100
|
```bash
|
|
101
101
|
testsprite project create --type frontend --name "<repo name>"
|
|
102
|
-
testsprite project env create <projectId> --name local --
|
|
102
|
+
testsprite project env create <projectId> --name local --url http://localhost:<port>
|
|
103
103
|
testsprite plan "<what you built>" --diff --project <projectId> --output json
|
|
104
104
|
testsprite apply --output json
|
|
105
|
-
testsprite run <id> <id> --
|
|
105
|
+
testsprite run <id> <id> --env local --output json
|
|
106
106
|
```
|
|
107
107
|
|
|
108
|
-
Keep the app listening
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
Keep the app listening: a run on the `local` environment opens a tunnel from this
|
|
109
|
+
machine, and the agent explores the app through one too — when it asks for a
|
|
110
|
+
tunnel, run `testsprite tunnel start` in another terminal and
|
|
111
|
+
`testsprite reply "The tunnel is running."`.
|
|
111
112
|
The port probe fails with exit 5 if nothing listens (`--skip-preflight`
|
|
112
|
-
bypasses it).
|
|
113
|
-
from your change (`--diff`) and the project's other environments.
|
|
113
|
+
bypasses it).
|
|
114
114
|
The Portal shows local environments without a Run action. Create a public
|
|
115
115
|
environment for deployed apps and select it with `--env <name>`.
|
|
116
116
|
|
|
@@ -159,8 +159,9 @@ testsprite run <test-id...> --wait --output json # the ids apply saved, in "ap
|
|
|
159
159
|
- Exit 7: the agent is still working; `testsprite status --wait` follows it.
|
|
160
160
|
Exit 13: the agent isn't enabled for this account; tell the user and stop —
|
|
161
161
|
the CLI has no other way to write tests.
|
|
162
|
-
- For an app only on this machine, the agent
|
|
163
|
-
|
|
162
|
+
- For an app only on this machine, the agent explores it through a tunnel: when it
|
|
163
|
+
asks for one, run `testsprite tunnel start` in another terminal and reply. Run
|
|
164
|
+
what it saved with `--env <name>`.
|
|
164
165
|
- When you open the pull request, put `prSummary` from the `apply` output in its
|
|
165
166
|
description, so reviewers see the tests that now guard the change.
|
|
166
167
|
|
|
@@ -204,7 +205,7 @@ Drifted steps are healed during a run; a wrong expectation needs the agent.
|
|
|
204
205
|
For a deployed target, create its environment once, then use `--env <name>`
|
|
205
206
|
after that deployment contains the change. Omit `--env` for Default; an unknown
|
|
206
207
|
name fails with available names and never falls back. For a local change,
|
|
207
|
-
|
|
208
|
+
run on the local environment, `testsprite run <test-id> --env <name>` (frontend only); it implies
|
|
208
209
|
waiting and defaults to 1200 seconds.
|
|
209
210
|
|
|
210
211
|
For a long `--wait` or a local run, start the CLI as a background task in your
|
|
@@ -259,13 +260,11 @@ Key behaviors:
|
|
|
259
260
|
- Environment `--url` takes a public http/https URL or a loopback http origin
|
|
260
261
|
with an explicit port (frontend only); private and link-local addresses are
|
|
261
262
|
refused. Running against a loopback environment opens a tunnel automatically
|
|
262
|
-
and waits
|
|
263
|
-
environment's sign-in to your local app; the server applies it or refuses
|
|
264
|
-
before dispatch.
|
|
263
|
+
and waits. `run` takes no `--target-url`: a run's address is its environment's.
|
|
265
264
|
- `--wait` reads execution status until terminal and handles its own backoff — don't wrap it
|
|
266
265
|
in a retry loop.
|
|
267
|
-
-
|
|
268
|
-
waits default to 600). Run several local frontend tests in ONE command (`run <id> <id> … --
|
|
266
|
+
- A tunnel run implies `--wait`, with a default timeout of 1200 seconds for the command (ordinary
|
|
267
|
+
waits default to 600). Run several local frontend tests in ONE command (`run <id> <id> … --env <name>`) instead of starting one process per test. `run --project <id> --env <name>` runs frontend tests and reports backend tests as skipped. They start one run per project (up to 5000 named test IDs per request) through one tunnel; `--max-concurrency` sets the server dispatch limit per execution, default 5 and maximum 15. Each execution is waited on independently; this limit never queues polling. There are
|
|
269
268
|
5 live tunnel bindings per user; `tunnel_binding_limit` is exit 11 and is not
|
|
270
269
|
auto-retried. Reuse a live tunnel with `--tunnel-client` or stop an unused one.
|
|
271
270
|
On a tunnel-limit error, run `testsprite tunnel list`, then `testsprite tunnel stop <id>`
|
|
@@ -291,8 +290,7 @@ Key behaviors:
|
|
|
291
290
|
A second `tunnel start` or process using the same credential takes over, and the first exits **10**.
|
|
292
291
|
- Exit codes: `0` = passed; `1` = failed / blocked / cancelled; `7` = timeout
|
|
293
292
|
or unsupported. An owned local timeout is inconclusive: start a **new**
|
|
294
|
-
`testsprite run <test-id> --
|
|
295
|
-
`--local-host <host>` if used; do not suggest `run wait` for that closed tunnel. Resume **ordinary or adopted-tunnel**
|
|
293
|
+
`testsprite run <test-id> --env <name> --timeout 1800`; do not suggest `run wait` for that closed tunnel. Resume **ordinary or adopted-tunnel**
|
|
296
294
|
waits with `testsprite run wait <run-id>` only while the target is reachable
|
|
297
295
|
(and the adopted tunnel's owner remains alive).
|
|
298
296
|
- Exit `13` (`FEATURE_GATED`) and exit `12` (`INSUFFICIENT_CREDITS`) are not retriable: show the user the server's message and the link from `nextAction` or JSON `links`, then stop.
|