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
run --target-url is removed. A run's address is its environment's: save another address with testsprite project env create <project-id> --name <name> --url <url> and run with --env <name>. For a pull request preview, testsprite ci run --env <name> --target-url <url> is unchanged. run --skip-preflight now only skips a local environment's port check.
run --local <port> and run --local-host <host> are removed. The address of an app on this machine lives on its environment: testsprite project env create <project-id> --name local --url http://localhost:<port>, then testsprite run <test-id...> --env local. The run opens the tunnel, and a local environment that is the project default needs no flag at all. The old flags exit 5 and name the new spelling.
Added
A local environment's address may carry the app's entry path.project env create / update --url http://localhost:3000/app keeps the path; a query, fragment or credentials are still refused.
The agent explores an app on this machine.testsprite plan on a project whose environment is local: when the agent asks for a tunnel, run testsprite tunnel start in another terminal and testsprite reply; it opens the app through that tunnel and proposes tests from what it saw. project env create / update with a local address say so up front, so the tunnel can be started before plan. A plan card names the environment the agent explored its tests on, and after apply the run command carries --env <name> when that environment is not the project's default.
Changed
run --testlist on a list that starts nothing now exits 5. An empty list, or one where no member could run, used to exit 0, so a CI gate went green without running a test. It now exits 5, as run --project already does; with --wait, the zero summary is printed first, and so is any JUnit report or summary file that was asked for. A list whose members were all refused keeps its own exit code (4, 6 or 7). Pass --allow-empty (now accepted with --testlist) to keep exit 0.
result get --out downloads only https links, and gives up on one that stalls. A link with another scheme, or one whose host is written as localhost or a local or private IP address, is listed under failed without being requested; host names are not resolved, so a storage endpoint reached by name still works. A file that sends no data for --request-timeout seconds (default 120) is given up on and listed under failed instead of hanging the command. The limit is on each wait for data, not on the whole download.
Help, completion scripts, error messages and the docs no longer mention the internal API endpoint setting. It was only ever for TestSprite's own use; nothing about how the CLI reaches the API changes.
project create makes the new project the one this folder works on.plan, reply and apply run in the folder use it without --project. They used to keep the project last used there, so a plan right after project create went to the older project.
A command that takes its project from the folder names it. When neither --project nor TESTSPRITE_PROJECT_ID names the project, plan, reply, apply, reject, stop and discard print Project: <name> (<id>), the one last used in this folder; pass --project for another. (text mode). stop prints the id alone, so the stop goes out without waiting for the name.
The hints for a new or empty project show the way to an app on this machine.project create on a frontend project shows project env create <id> --name local --url http://localhost:<port> beside the deployed address, and run --project <id> on a local environment of a project with no tests says so and points at tunnel start, plan and apply, naming the environment when it is not the default, where it used to announce a tunnel and send a run the server refused for want of one. A run no longer announces a tunnel for a project whose tests turn out to need none. The docs and the onboarding and verification skills no longer say the agent can't open a local app, and spell out testsprite reply "The tunnel is running.".
A backend project is told it can't have a local environment.project env create / update with --url http://localhost:<port> or --local <port> on a backend project now answers A backend project's environment must point at a publicly deployed API; local environments are for frontend projects only. before checking the port. It used to check the port first and then show the server's originMode refusal.
Hints and help name --url http://localhost:<port> for an app on this machine.--local <port> still works as its shorthand. When nothing listens on the port, the message names the flag that was given.