How to test contract efficiently?

As a beginner in the sui network, I enjoy developing the sui modules due to the object feature. But the objects also make the testing difficult. After publishing modules, I have to confirm the objects one by one in the blockchain browser and then write them into my test script. New objects are also created during testing, so we have to record and handle them.

Even though my contract was small and simple, it caused a lot of trouble. What about a large project?

Is there a best practice sample in testing modules?

1 Like