You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
fainashalts
changed the title
Support for interop unit tests in Foundry
Support for e2e interop unit tests in Foundry
Nov 26, 2024
fainashalts
changed the title
Support for e2e interop unit tests in Foundry
Support for interop unit tests in Foundry
Nov 26, 2024
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:
vm.mock()
to test interop functionality (to mock things like message initiation)The text was updated successfully, but these errors were encountered: