Expand description
App-level record and replay for CLIs, in any language: the program is a black box.
record runs the original on cases (the app’s own examples, an inputs file, semantic traps)
twice, marks what differs between the two runs as noise, and writes each case as trycmd files
in rust/app-cases/. replay runs any build against those files and reports what differs.
Structs§
- Config
rust/app-cases/rust-anything.json: how to run the original, and the normalizers.- Failure
- Fallback
- Cases the build handed to the original: the front door appends a line to the file named by
RUST_ANYTHING_FALLBACK_LOGfor every fallback (and may create it empty to report none). - Input
- One line of an
--inputsfile. - Noise
- Problem
- Record
Options - Record
Outcome - Replay
Options - Replay
Outcome
Enums§
- Noise
Kind - How two runs of the original disagreed.
Constants§
Functions§
- cases_
dir - record
- redacted
- The outcome as shapes only (
--redact), its report written again from them. - replay
- replay_
redacted replaywith--redact: the report is only ever written as shapes.- shell_
split - Splits a command line into words, shell-style quoting, no shell operators.