Move.

Post

Share your knowledge.

doodee.
Mar 23, 2025
Expert Q&A

Is the test_scenario module deprecated in SUI?

I think the 'test_scenario' module is missing in the SUI framework. Is it being deprecated, or is there another reason? Also, what is the testing approach now?

  • Move CLI
1
1
Share
Comments
.

Answers

1
elfDani.
Mar 24 2025, 04:01

No, the 'test_scenario' module is not being deprecated. It remains an important part of the testing framework. The module is designed for testing purposes and is located at: https://github.com/MystenLabs/sui/blob/main/crates/sui-framework/packages/sui-framework/sources/test/test_scenario.move. It is marked as #[test_only], meaning it is used exclusively for tests and won’t appear in the mainnet state.

1
Comments
.

Do you know the answer?

Please log in and share it.

Move is an executable bytecode language used to implement custom transactions and smart contracts.

148Posts231Answers
Sui.X.Peera.

Earn Your Share of 1000 Sui

Gain Reputation Points & Get Rewards for Helping the Sui Community Grow.

Reward CampaignJune
We use cookies to ensure you get the best experience on our website.
More info