This sub-project is used for integration testing forge with common dapptools repositories, to ensure that it's compatible with the test cases in them, e.g. usage of HEVM cheatcodes, proper forking mode integration, fuzzing etc.
It is also used for getting quick performance benchmarks for Forge.
- Make sure forge & dapptools are installed
- Clone testdata with
make testdata
from the Foundry project root - Run
./test.sh $REPO_NAME
, e.g../test.sh LootLoose
See the repositories listed in Makefile
Previously we used git submodules, but it's not great because cargo
doesn't have an option to ignore submodules when installing.
Now we use simple git clone --depth 1 --recursive
inside Makefile
.
To add new repository, see INTEGRATION_TESTS_REPOS
variable in Makefile