foundry_test_utils::util

Function setup_forge

Source
pub fn setup_forge(name: &str, style: PathStyle) -> (TestProject, TestCommand)
Expand description

Setup an empty test project and return a command pointing to the forge executable whose CWD is set to the project’s root.

The name given will be used to create the directory. Generally, it should correspond to the test name.