bombadil terminal test #
(EXPERIMENTAL) Test the given program against a TypeScript specification.
bombadil terminal test
[OPTIONS]
[COMMAND]...
Arguments #
[COMMAND]...-
The command to run as the system under test. Everything after
--is forwarded as program + arguments.
Options #
--specification <SPECIFICATION_FILE>-
Path to a TypeScript specification file (uses the
@antithesishq/bombadil/terminalAPI). Unless specified, Bombadil will use the default specification for terminal UIs. --exit-on-violation- Whether to exit the test when first failing property is found (useful in development and CI).
--time-limit <TIME_LIMIT>- Maximum time to run the test. Accepts a number with a unit suffix: s (seconds), m (minutes), h (hours), or d (days).
--columns <COLUMNS>-
Terminal columns at startup.
Default:
100 --rows <ROWS>-
Terminal rows at startup.
Default:
40 --scrollback-lines-max <SCROLLBACK_LINES_MAX>-
Maximum line count to keep in scrollback buffer.
Default:
100 --quiescence-timeout-ms <QUIESCENCE_TIMEOUT_MS>-
How long to wait (in milliseconds) for the program to stop emitting output before extracting the next state. Lower values increase throughput but risk sampling mid-render; higher values give the program more time to finish drawing.
Default:
5 --output-path <OUTPUT_PATH>- Trace FILE to write (any filename). Defaults to a unique file in system temp. Parent directories must already exist.
--output-path-overwrite-
Overwrite any existing trace at
--output-path. Without this flag, Bombadil refuses to replace an existing file. --reproduce <TRACE_FILE>- Reproduce a previous test run from a trace file, not a directory. Replays the recorded actions in order instead of generating new ones.
-h, --help- Print help.
Examples #
Test a program using the default specification:
bombadil terminal test my-tui --arg valueUse a custom specification and stop after one minute:
bombadil terminal test --specification tui.spec.ts --time-limit 1m my-tuiReproduce a previous test run (best-effort, fails on divergence):
bombadil terminal test --reproduce my-test my-tui --arg value