-
Notifications
You must be signed in to change notification settings - Fork 14
Integration test for two-hop reserve transfer #80
Comments
therefore, it is not necessary to repeat these steps on a new file. Ideally, a new file |
encoded call: decoded call:
|
FYI - working version with both reserve-transfers at https://github.com/paritytech/parachains-integration-tests/blob/frank/trappist/examples/trappist/1_reserve_transfer.yml. Needs finishing with additional checks and refactoring tho. |
Perhaps organisation based on the conventions used at https://github.com/paritytech/parachains-integration-tests/tree/master/examples/collectives-polkadot/0_xcm?
I've got 1 and 3 done based on your 2, so could refactor to create 0 with the hope that maybe one day they can be run via CI. |
Following my suggestion #76 (comment), it does sound like a good idea! However, after some consideration I also realized the following: We should also keep in mind that ideally on the long term, the integration tests won't necessarily only cover the cases from workshop slides. As we integrate new features into trappist, we will want to have integration tests for them. And we should also keep some room for a logical separation of integration tests that are somewhat orthogonal to eachother. Perhaps the two-hop reserve transfer test should follow If we choose to set all tests in sequence now, it might get a bit confusing in the future. Please let me know your thoughts @evilrobot-01 ? |
Another alternative would be to have a |
Agreed, but perhaps a folder per 'use-case' rather than feature, as longer term a particular feature may be involved in multiple use-cases? (i.e. composing various feaures to solve for a use case) A (rough) suggestion:
PS - my additional ideal would be having tests to check for regressions after updates, perhaps via CI longer term. |
@evilrobot-01 @bernardoaraujor I'm a bit unclear on where we are with this one .. can you share an update ? |
I have #76 which was just building on the work done by Bernardo to get a little more familiar with XCM and Trappist. My PR is dependent on some improvements being merged in https://github.com/paritytech/parachains-integration-tests but I've not had chance to follow up on that since unfortunately. I have a POC to get implemented over the next few days and then I could get back to it if thats okay? |
I've added #102 and found it much quicker to iterate, test, debug as it effectively removes the need for launching full nodes. It shouldn't replace full integration tests, but can maybe be used as a precursor. |
I agree that's much better for test-driven-development. The parachains-integration-tests can be a good way to make a final validation on some solution, but usiging it for development was making things really slow. Also an insight for #59 |
The XCM workshop slides by @stiiifff present two different reserve-based transfer scenarios:
While working on #51 I only wrote an integration test for the first case. But it's still interesting to have one for the second.
The text was updated successfully, but these errors were encountered: