Motsu - Unit Testing for Stylus
This crate enables unit-testing for Stylus contracts. It abstracts away the
machinery necessary for writing tests behind a
#[motsu::test] procedural macro.
The name motsu is an analogy to the place where you put your fingers to
hold a stylus pen.
Usage
Annotate tests with #[motsu::test] instead of #[test]
to get access to VM affordances.
Note that we require contracts to implement
stylus_sdk::prelude::StorageType. This trait is typically implemented by
default with stylus_proc::sol_storage or stylus_proc::storage macros.
Annotating a test function that accepts no parameters will make
#[motsu::test] behave the same as #[test].