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 125/week @ 2024-07-30 1/week @ 2024-08-20 36/week @ 2024-08-27 15/week @ 2024-09-03 15/week @ 2024-09-10 169/week @ 2024-09-17 60/week @ 2024-09-24 102/week @ 2024-10-01 21/week @ 2024-10-08 162/week @ 2024-10-15 16/week @ 2024-10-22 1/week @ 2024-10-29 19/week @ 2024-11-05

203 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–34MB
~560K SLoC