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

wormchain: integration tests for wormchain-ibc-receiver #4155

Open
wants to merge 39 commits into
base: main
Choose a base branch
from

Conversation

kakucodes
Copy link
Collaborator

@kakucodes kakucodes commented Nov 7, 2024

Add Integration Tests for IBC Contracts

Overview

This PR implements comprehensive integration tests for wormchain-ibc-receiver and wormhole-ibc contracts using Interchain test framework, providing a realistic testing environment for IBC functionality.

Key Changes

  • Added integration tests using Interchain test framework to validate contract behavior

Technical Details

  • Tests run in a simulated multi-chain environment to verify IBC functionality
  • Contract interfaces are auto-generated from Rust contracts to Go
  • Automated channel creation and management through go-relayer
  • Full end-to-end testing of IBC packet transmission and handling

Testing

Tests cover:

  • Channel establishment between chains
  • Packet transmission and acknowledgment
  • Error handling and recovery scenarios
  • Contract state verification

Dependencies

  • Interchain test framework
  • go-codegen for interface generation
  • cosmos/relayer for IBC operations

Impact

These tests significantly improve our confidence in the IBC contracts by:

  • Validating behavior in a realistic environment
  • Ensuring proper integration between components
  • Automating previously manual testing processes

@kakucodes kakucodes marked this pull request as ready for review November 21, 2024 17:20
@kakucodes kakucodes changed the title Feature/integration test ibc receiver wormchain: integration tests for wormchain-ibc-receiver Nov 21, 2024
Copy link
Collaborator

@joelsmith-2019 joelsmith-2019 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Marc and I spent time today walking through all of the code changes & tests. Everything looked good to me.

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

Successfully merging this pull request may close these issues.

3 participants