Skip to content

feat(forge): support pure Yul tests - #16657

Draft
figtracer wants to merge 2 commits into
masterfrom
fig/yul-tests
Draft

feat(forge): support pure Yul tests#16657
figtracer wants to merge 2 commits into
masterfrom
fig/yul-tests

Conversation

@figtracer

Copy link
Copy Markdown
Member

Summary

  • add forge test --strict-assembly for function-only .t.yul test suites
  • resolve and inline Yul imports, generate deployable selector dispatchers, and attach synthetic test ABIs
  • support setUp, test filtering, fresh --list, cached artifacts, multiple suites, and imported-helper invalidation
  • reject unsupported parameterized entrypoints, imported test suites, duplicate functions, and legacy testFail* tests with clear errors

Closes #11059.

Depends on foundry-rs/foundry-core#177. The dependency pins in this PR reference that prerequisite branch commit and should be refreshed after it merges.

Testing

  • cargo test -p foundry-common preprocessor::yul --lib
  • cargo test -p forge --test cli yul:: -- --nocapture
  • cargo check -p foundry-common -p forge
  • cargo clippy -p foundry-common -p forge --lib -- -D warnings
  • cargo +nightly fmt --all -- --check

@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

✅ Changelog found

The deterministic check will validate the changed entry.

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(compilers): allow pure Yul tests in forge test

1 participant