Skip to content

feat(foundry): 100% migration from dapptools#311

Open
sambacha wants to merge 2 commits intoOlympusDAO:mainfrom
sambacha:feat/foundry
Open

feat(foundry): 100% migration from dapptools#311
sambacha wants to merge 2 commits intoOlympusDAO:mainfrom
sambacha:feat/foundry

Conversation

@sambacha
Copy link
Copy Markdown

@sambacha sambacha commented May 7, 2022

prereqs

Foundry - foundry.toml is configured to use the existing structure for tests/etc
Justfile - this replaces Makefile, dotenv and bash scripts for test running/etc

updated

ds-test/test.sol git submodule was removed (redundant as their is a copy in test/dapp_test/lib/ds-test)

note you may have to manually update your .git/modules dir

usage

run the just command and you see recipes

$ just
just --list
Available recipes:
    build                     # Build Output
    build-mainnet             # [TEST] mainnet test
    forge-gas-snapshot        # [GAS] get gas snapshot timer
    forge-gas-snapshot-diff
    gas-snapshot              # [GAS] default gas snapshot script
    gas-snapshot-local        # [GAS] get gas snapshot from local tests and save it to file
    size                      # Contract Size
    test                      # [TEST] default test scripts
    test-debug *commands=""   # [TEST] run mainnet fork forge debug tests (all files with the extension .t.sol)
    test-local *commands=""   # [TEST] run local forge test using --match-path <PATTERN>
    test-mainnet *commands="" # [TEST] run mainnet fork forge tests (all files with the extension .t.sol)

@sambacha sambacha mentioned this pull request May 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant