foundry_test_utils::util

Function setup_forge_remote

Source
pub fn setup_forge_remote(
    prj: impl Into<RemoteProject>,
) -> (TestProject, TestCommand)
Expand description

Setups a new local forge project by cloning and initializing the RemoteProject

This will

  1. clone the prj, like “transmissions1/solmate”
  2. run forge build, if configured
  3. run additional commands

§Panics

If anything goes wrong during, checkout, build, or other commands are unsuccessful