Expand description
The Forge test runner.
StructsΒ§
- Contract
Runner - A type that executes all tests of a contract
- Function
Runner π - Executes a single test function, returning a
TestResult
. - Invariant
Persisted πFailure - Holds data about a persisted invariant failure.
ConstantsΒ§
- LIBRARY_
DEPLOYER - When running tests, we deploy all external libraries present in the project. To avoid additional libraries affecting nonces of senders used in tests, we are using separate address to predeploy libraries.
FunctionsΒ§
- fuzzer_
with_ πcases - persisted_
call_ πsequence - Helper function to load failed call sequence from file. Ignores failure if generated with different test contract than the current one.
- test_
paths π - Helper function to set test corpus dir and to compose persisted failure paths.