Structs§
- External test builder
- How to initialize a remote git project
- A simple wrapper around a Command with some conveniences.
TestProject
represents a temporary project to run tests against.
Constants§
- FORGE_
STD_ πREVISION The commit of forge-std to use. - Another Solc version used when compiling tests.
- The default Solc version used when compiling tests.
Statics§
- CURRENT_
DIR_ πLOCK - 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. Seeinitialize()
for more info.
Traits§
- Extension trait for
Output
.
Functions§
- Clones a remote repository into the specified directory. Panics if the command fails.
- config_
paths_ πexist - Initializes a project with
forge init
at the given path. - Setup an empty test project and return a command pointing to the forge executable whose CWD is set to the projectβs root.
- Setups a new local forge project by cloning and initializing the
RemoteProject
- test_
assert π - test_
redactions π - Same as
setup_forge_remote
but not panicking