Expand description
This library provides miscellaneous utility functions for unit and integration tests in Rust.
Re-exports
pub use warp;
Modules
Utilities for computing the difference between sequences.
General text utilities for tests.
Macros
Structs
Manages a temporary directory that can be used by tests. Supports creating files in the directory. Once the value is dropped the entire directory and its contents are deleted.
Provides a very simple HTTP server with warp
that can be used to test
requests.
Functions
Utility function to retrieve the standard output of a process from
the std::process::Output
while validating the exit status and
error output.
Convenience function combining get_bin
and get_process_output
.
Generates a temporary directory that can be used by tests. Returns
a TempDir
value that provides access to the created directory.
Test all .input
files in the given directory (recursively) using the
callback and compare the result with the expected output provided by a
.valid
file alongside the input.