testingterm
These docs were written by an AI agent. They were checked against the code, but may still contain mistakes; when in doubt, trust testingterm --help and the types.

Installation

Install the CLI with curl, or add the npm package to a project.

testingterm runs on macOS and Linux, on both arm64 and x64. Windows is not supported yet.

Install the CLI

$ curl -fsSL https://testingterm.sh/install | sh

The installer downloads its own Node runtime and the engine into ~/.local/share/testingterm, puts a testingterm command in ~/.local/bin, and offers to install the agent skill. It needs only curl and tar. On minimal Linux images it also installs libatomic1 when it runs as root.

Upgrade later with:

$ testingterm upgrade

testingterm upgrade --check only reports whether a newer version exists. The previous version is kept until the next upgrade.

Add it to a project

$ npm install --save-dev testingterm

The package contains the library, its types, the testingterm command, and the engine for your platform (npm picks one of @zenbu-labs/testingterm-darwin-arm64, -darwin-x64, -linux-x64 or -linux-arm64 automatically). Nothing else needs to be installed, which makes it the right choice for CI.

Requires Node 22.15 or later.

Install the agent skill

$ testingterm setup

This links a skill into Claude Code, Codex, Cursor and Gemini (whichever you have) and into ~/.agents/skills, so coding agents know when and how to use testingterm. See Using it from an agent.

Check it works

$ testingterm run -e 'const t = launch("echo hello"); await expect(t).toHaveText("hello"); await t.screenshot()'
✓ inline script (31ms)
    /tmp/testingterm/run-.../echo-1a2b-01.png