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.
- Sandbox
Assert - Sandbox
Settings - 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 theCARGO_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.