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
Integration testing support is needed for better testing experience since using mock in unit test doesn't mean much when performing stateful operation. It would be done by writing test in go (example) but can be tedious since we need to redefine all msg types.
rebuild on go file change -> run go build in build.rs
read go file to find list of exported function
use bindgen, whitelist only exported function
export basic function
create testing account
fund account
store-code and instantiate
check the state
execute
Further work
Make setup intuitive
Add more setup function, eg. new pool. tokenfactory
IBC support
The text was updated successfully, but these errors were encountered:
iboss-ptk
changed the title
Experiment with Go FFI to create integration test interface to chain's state machine from rust
Create integration test interface to chain's state machine from rust
Aug 13, 2022
Background
Integration testing support is needed for better testing experience since using mock in unit test doesn't mean much when performing stateful operation. It would be done by writing test in go (example) but can be tedious since we need to redefine all msg types.
This also pave path for osmosis-labs/beaker#88 and osmosis-labs/beaker#89 that beaker can reuse osmosisd logics.
Expectation
osmosis-testing
cratebuild.rs
go build
in build.rsFurther work
The text was updated successfully, but these errors were encountered: