8 releases (breaking)

new 0.7.0 Mar 19, 2025
0.6.0 Mar 11, 2025
0.5.0 Mar 5, 2025
0.4.0 Feb 6, 2025
0.1.0 Sep 11, 2024

#5 in #unit-tests

Download history 78/week @ 2024-11-29 123/week @ 2024-12-06 193/week @ 2024-12-13 36/week @ 2024-12-20 85/week @ 2024-12-27 275/week @ 2025-01-03 182/week @ 2025-01-10 215/week @ 2025-01-17 323/week @ 2025-01-24 496/week @ 2025-01-31 270/week @ 2025-02-07 130/week @ 2025-02-14 148/week @ 2025-02-21 253/week @ 2025-02-28 346/week @ 2025-03-07 239/week @ 2025-03-14

1,004 downloads per month
Used in motsu

MIT license

7KB
62 lines

Motsu's Procedural Macros

This crate contains the #[motsu::test] attribute definition used in motsu. This macro is designed to simplify testing for smart contracts built with the Stylus SDK.

Usage

The #[motsu::test] attribute is an enhanced version of Rust's built-in #[test] attribute. It is specifically designed for testing within the Stylus execution environment, allowing you to interact with contract storage and environment variables like msg::sender.

Security

Refer to our Security Policy for more details.

Dependencies

~200–630KB
~15K SLoC