tvl-depot/tvix/cli
Aspen Smith 0ad986169d test(tvix/cli): Make the REPL testable
Juggle around the internals of the tvix-cli crate so that we expose the
Repl as a public type with a `send` method, that sends a string to the
repl and *captures all output* so that it can be subsequently asserted
on in tests. Then, demonstrate that this works with a single (for now)
REPL test using expect-test to assert on the output of a single command
sent to the REPL.

As the REPL gets more complicated, this will allow us to make tests that
cover that complex behavior.

Change-Id: I88175bd72d8760c79faade95ebb1d956f08a7b83
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11958
Autosubmit: aspen <root@gws.fyi>
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
2024-07-07 14:19:17 +00:00
..
src test(tvix/cli): Make the REPL testable 2024-07-07 14:19:17 +00:00
tests test(tvix/cli): Make the REPL testable 2024-07-07 14:19:17 +00:00
Cargo.toml test(tvix/cli): Make the REPL testable 2024-07-07 14:19:17 +00:00
default.nix test(tvix/cli): Make the REPL testable 2024-07-07 14:19:17 +00:00