10 releases (5 stable)

1.4.0 Oct 18, 2024
1.3.0 Sep 20, 2024
1.2.0 Jul 30, 2024
1.1.0 Jun 17, 2024
0.8.0 Feb 6, 2024

#2 in #odra

Download history 120/week @ 2024-07-27 5/week @ 2024-08-03 26/week @ 2024-08-24 24/week @ 2024-08-31 2/week @ 2024-09-07 121/week @ 2024-09-14 113/week @ 2024-09-21 100/week @ 2024-09-28 26/week @ 2024-10-05 125/week @ 2024-10-12 58/week @ 2024-10-19 3/week @ 2024-10-26

217 downloads per month
Used in odra-modules

MIT license

260KB
5.5K SLoC

This crate provides a testing environment for the Odra VM.

It is meant to be used in the unit tests of the Odra contracts.

Example

#[test]
fn test() {
   let env = odra_test::env();
   let caller = env.get_account(0);

   // Test your contract here.
}

Dependencies

~20–33MB
~561K SLoC