Crate foundry_test_utils

Crate foundry_test_utils 

Source
Expand description

ยงfoundry-test-utils

Internal Foundry testing utilities.

Re-exportsยง

pub use foundry_compilers;
pub use snapbox;

Modulesยง

ext ๐Ÿ”’
fd_lock
File locking utilities.
filter ๐Ÿ”’
macros ๐Ÿ”’
prj ๐Ÿ”’
rpc
RPC API keys utilities.
script ๐Ÿ”’
ui_runner
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 --empty).
str
Declare an expected value from within Rust source
test_debug
test_trace

Structsยง

ExtTester
External test builder
Filter
ScriptTester
A helper struct to test forge script scenarios
TestCommand
A simple wrapper around a Command with some conveniences.
TestProject
TestProject represents a temporary project to run tests against.

Enumsยง

ScriptOutcome
Various forge script results

Functionsยง

env_filter ๐Ÿ”’
init_tracing
Initializes tracing for tests.
test_debug
test_trace