Crate ito_test_support

Crate ito_test_support 

Source
Expand description

Test helpers for the Ito workspace.

This crate provides small utilities used in integration tests and snapshot tests across the workspace. It is not intended for production code paths.

Modules§

mock_repos
In-memory mock implementations of domain repository traits for unit testing. In-memory mock implementations of domain repository traits for unit testing.
pty
PTY helpers for driving interactive commands in tests. PTY-based command runners for interactive integration tests.

Structs§

CmdOutput
Captured output from running a command in tests.

Functions§

collect_file_bytes
Collect all file bytes under root, keyed by normalized relative paths.
copy_dir_all
Recursively copy from to to.
normalize_text
Normalize text for deterministic snapshots.
reset_dir
Replace the contents of dst with a recursive copy of src.
run_rust_candidate
Executes the Ito candidate binary with the supplied arguments in a deterministic test environment and returns the captured output.
rust_candidate_command
Build a Command used to invoke the Rust candidate binary.