dojo icon indicating copy to clipboard operation
dojo copied to clipboard

[katana] integration testing for messaging

Open glihm opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. Messaging feature is not battled testing with integration tests as it should be.

Describe the solution you'd like This PR consists at writing integration testing for messaging where a Katana and an Anvil instance can communicate.

  1. Use the Katana runner through the test sequencer https://github.com/dojoengine/dojo/blob/5015ea1dba0f8aee68c6913181fd1ecda7e06a6a/crates/dojo-test-utils/src/sequencer.rs#L30 to spin up a Katana.
  2. Write a TestAnvil to have the same functionalities.
  3. Run the messaging tutorial verifying the state on both chain to ensure messaging is working as expected.

Additional context Messaging tutorial to execute: https://github.com/dojoengine/dojo/tree/5015ea1dba0f8aee68c6913181fd1ecda7e06a6a/crates/katana/primitives/contracts/messaging

glihm avatar Apr 06 '24 22:04 glihm

@glihm Hello, I'd love to work on this issue :)

fabrobles92 avatar Apr 22 '24 03:04 fabrobles92