-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: forge test
should be all green and exclude tests that require anvil
#11148
test: forge test
should be all green and exclude tests that require anvil
#11148
Commits on Jul 18, 2024
-
test(devchain/e2e): moves e2e demo test into new
devchain/
directoryThis allows us to exclude all tests in the `devchain/` directory when running `forge test`
Configuration menu - View commit details
-
Copy full SHA for 6212176 - Browse repository at this point
Copy the full SHA 6212176View commit details -
test(devchain/migration): renames migration test to Migration.t.sol
Previously this was called Integration.t.sol, but that's not super obvious naming.
Configuration menu - View commit details
-
Copy full SHA for 29c2ef3 - Browse repository at this point
Copy the full SHA 29c2ef3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 703abe2 - Browse repository at this point
Copy the full SHA 703abe2View commit details -
feat(foundry.toml): adds profile for tests that require a devchain
The configs of this profile extend or overwrite the default profile. That means we can customise the `match_path` and `no_match_path` configs in that profile and run `forge test` with that profile by passing an environment variable `FOUNDRY_PROFILE=devchain`. For example, once a devchain is serving at localhost: ```sh FOUNDRY_PROFILE=devchain forge test -vvv \ --match-path "test-sol/devchain/e2e/*" \ --fork-url $ANVIL_RPC_URL [⠒] Compiling... No files changed, compilation skipped Ran 1 test for test-sol/devchain/e2e/common/FeeCurrencyDirectory.t.sol:E2EDemo [PASS] test_ShouldAllowOwnerSetCurrencyConfig() (gas: 94493) Suite result: ok. 1 passed; 0 failed; 0 skipped; finished in 12.92ms (2.35ms CPU time) Ran 1 test suite in 164.71ms (12.92ms CPU time): 1 tests passed, 0 failed, 0 skipped (1 total tests) ```
Configuration menu - View commit details
-
Copy full SHA for 254bf9c - Browse repository at this point
Copy the full SHA 254bf9cView commit details -
Configuration menu - View commit details
-
Copy full SHA for a49e3bc - Browse repository at this point
Copy the full SHA a49e3bcView commit details -
feat(workflows): adds profile env variable to CI workflows
This ensures that the correct profile is consumed on CI and the correct tests are run.
Configuration menu - View commit details
-
Copy full SHA for 7ea5e86 - Browse repository at this point
Copy the full SHA 7ea5e86View commit details -
feat(workflows): adds profile env variable to CI workflows
This ensures that the correct profile is consumed on CI and the correct tests are run.
Configuration menu - View commit details
-
Copy full SHA for 1b07f30 - Browse repository at this point
Copy the full SHA 1b07f30View commit details -
Configuration menu - View commit details
-
Copy full SHA for 125391c - Browse repository at this point
Copy the full SHA 125391cView commit details
Commits on Jul 19, 2024
-
docs(README): add note on devchain tests
Co-authored-by: Martín Volpe <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 64508c0 - Browse repository at this point
Copy the full SHA 64508c0View commit details -
Merge branch 'release/core-contracts/12' into arthurgousset/test/forg…
…e-test-all-green
Configuration menu - View commit details
-
Copy full SHA for 76edba3 - Browse repository at this point
Copy the full SHA 76edba3View commit details