Crate foundry_test_utils

Source
Expand description

§foundry-test-utils

Internal Foundry testing utilities.

Re-exports§

pub use util::TestCommand;
pub use util::TestProject;
pub use foundry_compilers;
pub use snapbox;

Modules§

fd_lock
File locking utilities.
filter 🔒
macros 🔒
rpc
RPC API keys utilities.
script 🔒
util

Macros§

assert_data_eq
Check if a value is the same as an expected value
casttest
file
Declare an expected value for an assert from a file
forgesoldeer
Setup forge soldeer
forgetest
A macro to generate a new integration test case
forgetest_async
forgetest_init
Same as forgetest but returns an already initialized project workspace (forge init)
str
Declare an expected value from within Rust source

Structs§

Filter
ScriptTester
A helper struct to test forge script scenarios

Enums§

ScriptOutcome
Various forge script results

Functions§

init_tracing
Initializes tracing for tests.