A terminal for agents to test terminal apps
Let your agent test terminal apps inside its own fast headless terminal. NPM package available for usage in CI.
$
curl -fsSL https://testingterm.sh/install | shtestingterm run <file>runs test scripts and prints results, screenshots and videostestingterm run -e '<code>'runs a script inline, in one calltestingterm new -- <command>starts a program in a terminal you drive step by steptestingterm screenprints the screen's text, cursor and modestestingterm press / typesends keys and text like a person at a keyboardtestingterm click <x> <y>clicks a pixel, a cell, or --text on screentestingterm wait --text <t>waits for text, a steady screen, quiet, or exittestingterm screenshotsaves a pixel-exact PNGtestingterm record start|stoprecords an MP4 with the pointer and keys drawn intestingterm profile start|stoprecords output timing, CPU and memory for Perfettotestingterm setupinstalls the skill that teaches agents to use testingtermtestingterm upgradeupgrades to the latest releaseSolidify tests into code
check.mjs
import { launch, expect } from "testingterm";
const t = launch("git ls-files | fzf");
await t.type("src");
await t.press("Down", { count: 2 });
await expect(t).toHaveText("window.rs");
await t.screenshot();$ testingterm run check.mjs --video on
✓ check.mjs (316ms)
$TMPDIR/testingterm/run-2026-12-04_20-22-46-56114/check/git-3ryg-01.png
$TMPDIR/testingterm/run-2026-12-04_20-22-46-56114/check/git-3ryg.mp4$ testingterm run -e '
const t = launch("ls")
await expect(t).toHaveText("package.json")
await t.screenshot()'BenchmarksEach number is the median of 1,000 samples from 10 separate runs, on an Apple M4 Mac mini (32 GB, macOS 27.2) with testingterm 0.0.2.
0.00 ms
read the screen as text
0.22ms
find text on screen
0.31ms
close a terminal
0.67ms
keypress until it's on screen
5.5ms
take a screenshot
8.8ms
launch a program until its output
28.6ms
launch, wait for output, screenshot
39.5ms