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

Support for interop unit tests in Foundry #57

Open
2 tasks
fainashalts opened this issue Jul 19, 2024 · 0 comments
Open
2 tasks

Support for interop unit tests in Foundry #57

fainashalts opened this issue Jul 19, 2024 · 0 comments

Comments

@fainashalts
Copy link
Collaborator

At the unit test level, developers will likely wish to test their smart contracts against interop functionality from the perspective of each chain they will be deployed one. A common way to do unit tests in Foundry is to use forking cheatcodes. For more details on forking cheatcodes, see the Foundry documentation.

We should ensure that developers have what they need to efficiently create unit tests for interop functionality.

To Do:

  • provide code snippets in the interop developer documentation for how to use vm.mock() to test interop functionality (to mock things like message initiation)
  • evaluate whether additional cheat codes need to be added to foundry to support the developers testing interop projects. Record the decision and rationale either way.
@fainashalts fainashalts changed the title Support for interop unit tests in Foundry Support for e2e interop unit tests in Foundry Nov 26, 2024
@fainashalts fainashalts changed the title Support for e2e interop unit tests in Foundry Support for interop unit tests in Foundry Nov 26, 2024
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

No branches or pull requests

1 participant