Skip to content
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

feat(forge): inline config for tests #9342

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

yash-atreya
Copy link
Member

@yash-atreya yash-atreya commented Nov 18, 2024

Motivation

Closes #8564 + Closes #6908

Solution

  • Introduces TestConfig to TestOptions.
  • TestConfig implements InlineConfigParser and parses inline with the key test. e.g forge-config: default.test.evm-version: shanghai
  • Sets the TestConfig per test in ContractRunner.prepare_test.
  • Important to note that this would override any config passed via CLI or foundry.toml

TODO

  • Apply TestConfig to invariants
  • Add isolate config.
  • Tests

@yash-atreya yash-atreya self-assigned this Nov 18, 2024
@grandizzy
Copy link
Collaborator

related #6228

@yash-atreya yash-atreya marked this pull request as ready for review November 19, 2024 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

feat: allow evm_version config to be defined inline feat: allow isolate config to be defined inline
2 participants