← all repositories
TestSprite/testsprite-cli

A Test CLI That Makes Agents Face Their Own Breakage

It gives coding agents a deterministic way to verify their own code against live apps and receive structured failure bundles they can act on directly.

★5.1k stars TypeScript Coding AssistantsLLMOps · Eval
testsprite-cli
Velocity · 7d
+129
★ / day
Trend
↗accelerating
star history

What it does

TestSprite CLI is the official terminal interface for the TestSprite cloud testing platform. It lets developers and coding agents create, run, and rerun end-to-end tests against live browsers and APIs, then pull back structured failure reports. The tool is built around a loop: describe a behavior, test it, bank the passing result, and when something breaks, hand the agent a single snapshot of the failure to fix.

The interesting bit

The CLI refuses to stitch failure data across different test runs, which means an agent never reasons over a “frankenstein context.” Instead, test failure get returns one self-consistent bundle—screenshots, DOM snapshots, a root-cause hypothesis, and a recommended fix target—all tied to a single snapshotId. That is a deliberate design choice for autonomous workflows, not just human convenience.

Key highlights

  • Targets agentic workflows with first-class support for Claude, Cursor, Cline, Codex, and others via agent install.
  • Runs tests against live browsers and real APIs in the cloud; no mocks.
  • Returns deterministic, scriptable output with stable --output json, predictable exit codes, and a --dry-run mode for offline exploration.
  • Claims to have helped the cheapest model top a public leaderboard with 89% correctness at half the cost of the priciest competitor.

Verdict

Worth a look if you are already using or evaluating TestSprite’s cloud platform and want your agent or CI pipeline to drive verification from the terminal. Skip it if you need a fully offline, self-hosted testing runner—this is a client for a commercial cloud service.

Frequently asked

What is TestSprite/testsprite-cli?
It gives coding agents a deterministic way to verify their own code against live apps and receive structured failure bundles they can act on directly.
Is testsprite-cli open source?
Yes — TestSprite/testsprite-cli is open source, released under the Apache-2.0 license.
What language is testsprite-cli written in?
TestSprite/testsprite-cli is primarily written in TypeScript.
How popular is testsprite-cli?
TestSprite/testsprite-cli has 5.1k stars on GitHub and is currently accelerating.
Where can I find testsprite-cli?
TestSprite/testsprite-cli is on GitHub at https://github.com/TestSprite/testsprite-cli.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.