Crate starbase_sandbox

Source

Re-exports§

pub use assert_cmd;
pub use assert_fs;
pub use insta;
pub use predicates;
pub use pretty_assertions;

Macros§

assert_debug_snapshot
Asserts a Debug snapshot.
assert_snapshot
Asserts a String snapshot.

Structs§

Sandbox
A temporary directory to run fs and process operations against.
SandboxAssert
SandboxSettings
Settings to customize commands and assertions.

Functions§

create_command
Create a command to run. Will default the binary name to the BIN_NAME setting, or the CARGO_BIN_NAME environment variable.
create_command_with_name
Create a command to run with the provided binary name.
create_empty_sandbox
Create an empty sandbox.
create_sandbox
Create a sandbox and populate it with the contents of a fixture.
create_temp_dir
Create a temporary directory.
debug_process_output
Debug the stderr, stdout, and status of a process output by printing to the console.
debug_sandbox_files
Debug all files in the sandbox by printing to the console.
get_assert_output
Convert the stdout and stderr output to a string.
get_assert_stderr_output
Convert the stderr output to a string.
get_assert_stdout_output
Convert the stdout output to a string.
locate_fixture
Locate a fixture on the file system by searching up the directory tree for a tests/__fixtures__/<fixture> directory, starting from the current Cargo project root.
output_to_string
Convert a binary output to a string.