#testing #proptest #async #macro #supporting

proptest_async

proptest macro supporting async tests

3 unstable releases

0.2.0 Mar 26, 2024
0.1.1 Mar 26, 2024
0.1.0 Mar 21, 2024

#5 in #proptest

Download history 137/week @ 2024-03-16 254/week @ 2024-03-23 55/week @ 2024-03-30 2/week @ 2024-04-06

64 downloads per month

MIT license

10KB
181 lines

proptest_async

This crate is an augmentation of the proptest::proptest! macro to work with async tests.

proptest_async::proptest! {
    #[test]
    async fn my_test() {
        // ...
    }
}

runtime

The macro currently hardcodes async_std as the executor. Could be easily converted to work with Tokio (e.g. using a feature switch), but I haven't gotten around to this.

upstream

I'll probably eventually clean it up and upstream to the proptest project.

Dependencies

~2–13MB
~146K SLoC