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 🔒
- revive
- 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
- casttest_
serial - deploy_
contract - 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
forgetestbut returns an already initialized project workspace (forge init) - forgetest_
serial - str
- Declare an expected value from within Rust source
Structs§
- Filter
- Script
Tester - A helper struct to test forge script scenarios
Enums§
- Script
Outcome - Various
forgescript results
Functions§
- init_
tracing - Initializes tracing for tests.