multiversx-scenario-migration
Installation
SKILL.md
Migrating Scenario JSON Tests to Rust Blackbox Tests
Use sc-meta scen-blackbox to auto-generate Rust blackbox tests from existing .scen.json scenario files. The generated code serves as a starting point that must be reviewed and refined before committing.
Running the Generator
sc-meta scen-blackbox
This reads all .scen.json files in the contract's scenarios/ directory and produces a Rust test file.
Generated Code Structure
The generator produces a Rust file with this structure:
use multiversx_sc_scenario::imports::*;