Sui Move Scenario Testing

The Sui document shows clearly on using sui::test_scenario to set up a multi-transaction test for a single-module package. (see here)

My question is:
How to use sui::test_scenario to set up a multi-transactioni test for a multi-module package?
A current problem I am facing is that you cannot “init” all modules in a test since any test is written inside a particular module and thus cannot access the “init” funciton in another module.

If anyone knows the answer, please let me know. I will really appreciate the help!

6 Likes

Check how I set up my tests:

hope it helps!

3 Likes

Thanks man. It is very helpful!

3 Likes