bombadil terminal shrink #
(EXPERIMENTAL) Shrink a trace with a property violation into a smaller one that still violates it (best-effort, as with reproduce).
bombadil terminal
shrink [OPTIONS]
[COMMAND]...
Arguments #
[COMMAND]...-
The command to run as the system under test. Everything after
--is forwarded as program + arguments.
Options #
--trace <TRACE_PATH>- Trace FILE to shrink (any filename, not a directory).
--property <PROPERTY>- Name of the property to shrink for. Required if the trace has violations of more than one property.
--output-path <OUTPUT_PATH>- Trace FILE to write. Defaults to a unique file in system temp. Parent directories must already exist. Must not alias the input.
--output-path-overwrite-
Overwrite any existing file at
--output-path. --time-limit <TIME_LIMIT>- Maximum time to shrink for, after which the smallest trace found so far is kept. Accepts a number with a unit suffix: s (seconds), m (minutes), h (hours), or d (days).
--parallelism <PARALLELISM>-
Number of test runs to execute in parallel. Only use this if runs are isolated from each other (e.g. not sharing files or a backend).
Default:
1 --calibration-runs <CALIBRATION_RUNS>-
Number of times to replay the original trace to measure how reliably it reproduces the violation.
Default:
3 --confirmation-runs-max <CONFIRMATION_RUNS_MAX>-
Maximum number of runs used to confirm that a smaller trace reproduces reliably enough.
Default:
5 --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. --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 -h, --help- Print help.
Examples #
Shrink the trace in my-test, which violates a
single property:
bombadil terminal shrink --trace my-test my-tui --arg valueShrink for a specific property, running four programs in parallel:
bombadil terminal shrink --trace my-test --property noCrash --parallelism 4 --specification tui.spec.ts my-tui