Structsยง
- ExtTester
- External test builder
- Remote
Project - How to initialize a remote git project
- Test
Command - A simple wrapper around a Command with some conveniences.
- Test
Project TestProject
represents a temporary project to run tests against.
Constantsยง
- FORGE_
STD_ REVISION - The commit of forge-std to use.
- OTHER_
SOLC_ VERSION - Another Solc version used when compiling tests.
- SOLC_
VERSION - The default Solc version used when compiling tests.
Staticsยง
- CURRENT_
DIR_ ๐LOCK - IS_TTY
- Stores whether
stdout
is a tty / terminal. - NEXT_ID ๐
- Global test identifier.
- TEMPLATE_
LOCK ๐ - Global default template lock. If its contents are not exactly
"1"
, the global template will be re-initialized. Seeinitialize()
for more info. - TEMPLATE_
PATH ๐ - Global default template path. Contains the global template project from which all other
temp projects are initialized. See
initialize()
for more info.
Traitsยง
Functionsยง
- clone_
remote - Clones a remote repository into the specified directory. Panics if the command fails.
- config_
paths_ ๐exist - initialize
- Initializes a project with
forge init
at the given path from a template directory. - lossy_
string - pretty_
err - read_
string - setup_
cast - setup_
cast_ project - setup_
forge - Setup an empty test project and return a command pointing to the forge executable whose CWD is set to the projectโs root.
- setup_
forge_ project - setup_
forge_ remote - Setups a new local forge project by cloning and initializing the
RemoteProject
- test_
assert ๐ - test_
redactions ๐ - try_
setup_ forge_ remote - Same as
setup_forge_remote
but not panicking