AstarNetwork / Astar

The dApp hub for blockchains of the future
https://astar.network/
GNU General Public License v3.0
735 stars 326 forks source link

Add XCM integration tests #960

Closed shaunxw closed 2 months ago

shaunxw commented 1 year ago

We currently have xcm-simulator-tests, which is not ideal as it's based on a mock runtime duplicating Shiden runtime. Instead, all runtimes including Shibuya/Shiden/Astar should be covered and the tests should be done against real-life relay chain and parachain runtimes.

There are 2 options for us:

  1. Chopsticks
    • Pros: test on live network forks, is able to cover more scenarios like HRMP channels, between runtimes with different XCM/deps version.
    • Cons: tests are written with TS/JS.
  2. XCM emulator
    • Pros: written in Rust.
    • Cons: cannot test HRMP channels; runtimes need to be the same deps version; will introduce extra build overhead for tests, CI.
github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

Dinonard commented 1 year ago

Emulator added via this uplift: https://github.com/AstarNetwork/Astar/pull/978

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

ermalkaleci commented 2 months ago

@Dinonard @shaunxw I believe this is already solved

Dinonard commented 2 months ago

True!